<jupyter_start><jupyter_text><jupyter_code>!pip install easyocr
import matplotlib.pyplot as plt
import cv2
import easyocr
from pylab import rcParams
from IPython.display import Image
rcParams['figure.figsize'] = 8, 16
reader = easyocr.Reader(['en'])
import numpy as np
import tensorflow as tf
!pip install gputil
!pip install psutil
!pip install humanize
reader = easyocr.Reader(['en'], gpu = False)
Image("sample-1.jpg")
output = reader.readtext('sample-1.jpg')
output<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10869565217391304, 'fraction_numerical': 0.011857707509881422, 'mean_word_length': 6.140845070422535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '464801', 'license': 'MIT', 'n_tokens_mistral': 182, 'n_tokens_neox': 174, 'n_words': 49, 'path': 'OCR.ipynb', 'repo_name': 'sreejanarahari/OCR', 'size': '506'}