IoT_OCR - nomrand/thai GitHub Wiki

Instruction

install Tesseract

sudo apt-get install tesseract-ocr
pip install pytesseract

Copy Thai Language data from site

cp tha.traineddata /usr/share/tesseract-ocr/4.00/tessdata/

Call

import cv2
import pytesseract
pytesseract.image_to_string(image, config='-l tha+eng')