Answers for "ocr implementation in python"

5

ocr python library

import cv2 
import pytesseract

img = cv2.imread('image.jpg')

# Adding custom options
custom_config = r'--oem 3 --psm 6'
pytesseract.image_to_string(img, config=custom_config)
Posted by: Guest on November-08-2020
0

ocr python

# https://github.com/mindee/doctr

from doctr.models import ocr_predictor

model = ocr_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)
Posted by: Guest on May-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language