ITACA_Insurance_Core_v4 / OCR_Detector.py
dperales's picture
Upload 12 files
b2fbe3d
raw
history blame contribute delete
296 Bytes
import pandas as pd
import numpy as np
import streamlit as st
import easyocr
import PIL
from PIL import Image, ImageDraw
class OCRDetector:
def __init__(self):
# it will only detect the English and Spanish part of the image as text
self.reader = easyocr.Reader(['es','en'], gpu=False)