Skip to content

Instantly share code, notes, and snippets.

View wannadrunk's full-sized avatar

WannaDrunk wannadrunk

  • Earth
View GitHub Profile
@bouroo
bouroo / thai-id-card.py
Last active October 31, 2023 03:24
Thai National ID Card reader in python
#!/usr/bin/env python
# Kawin Viriyaprasopsook<[email protected]>
# 2023-10-19
# sudo apt-get -y install pcscd python-pyscard python-pil
import binascii
import os
import sys
from PIL import Image
from smartcard.System import readers