개정판 2b47126a
Area OCR whitelist 추가
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
26 | 26 |
pytesseract.pytesseract.tesseract_cmd = 'D:\\Program Files\\Tesseract-OCR\\tesseract.exe' |
27 | 27 |
tesseract_cmd = 'D:\\Program Files\\Tesseract-OCR\\tesseract.exe' |
28 | 28 |
|
29 |
def getTextInfo(img, startPoint, flag = FLAG_IMAGE_TO_BOXES, conf = "--psm 6 -c tessedit_char_whitelist='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-~.,/!@#$%&*(){}<>:;+=?'"):
|
|
29 |
def getTextInfo(img, startPoint, flag = FLAG_IMAGE_TO_BOXES, conf = """--psm 6 -c tessedit_char_whitelist=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-~.,/!@#$%&*(){}<>:;+=?\\"\\'"""):
|
|
30 | 30 |
im = Image.fromarray(img) |
31 | 31 |
imgWidth = im.width |
32 | 32 |
imgHeight = im.height |
내보내기 Unified diff