<jupyter_start><jupyter_text>Importing Libraries<jupyter_code>from PIL import Image
import pytesseract
import numpy as np<jupyter_output><empty_output><jupyter_text>Loading the image and convert it to text<jupyter_code>filename = 'image_01.png'
img1 = np.array(Image.open(filename))
text = pytesseract.image_to_string(img1)
print(text)<jupyter_output>20 Wonderful Top 20
Motivational Quotes.
Number 16 is Absolutely
Stunning.<jupyter_text>Loading the second image and convert it to text<jupyter_code>filename = 'image_02.png'
img1 = np.array(Image.open(filename))
text = pytesseract.image_to_string(img1)
print(text)<jupyter_output>Testing Tesseract OCR
{'fraction_non_alphanumeric': 0.0888208269525268, 'fraction_numerical': 0.021439509954058193, 'mean_word_length': 8.909090909090908, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '227943', 'license': 'MIT', 'n_tokens_mistral': 245, 'n_tokens_neox': 237, 'n_words': 50, 'path': 'Optical-Character-Recognition.ipynb', 'repo_name': 'Divyakathirvel26/Optical-Character-Recognition', 'size': '653'}