An OCR API service for a cropped Indonesian Driving License
- Extracts all text data
kraken, CV, Tesseract
- Install requirements in requirements.txt
- Run home.py for API testing
json = {
"message" : "OCR Success",
"success" : True,
"documentType" : "SIMprocessed",
"data" : {
"Nama" : nama,
"Alamat": alamat,
"JenisKelamin": kelamin,
"TempatLahir" : teL,
"TanggalLahir": taL,
"Tinggi": tinggi,
"Pekerjaan": pekerjaan,
"NoSIM": noSIM,
"JenisSIM": jenisSim,
"mb":mb
},
"img" : {
"sim": filename,
}
}