Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Aniket025
GitHub Repository: Aniket025/Medical-Prescription-OCR
Path: blob/master/Model-2/tesseract.py
427 views
1
import numpy as np
2
import pandas as pd
3
import matplotlib.pyplot as plt
4
import tensorflow as tf
5
import cv2
6
from PIL import Image
7
import pytesseract
8
import os
9
10
IMG = '1' # 1, 2, 3
11
filename = "test/3.png"
12
save_filename = "test/2_1.jpg"
13
14
text = pytesseract.image_to_string(Image.open("test/3.png"))
15
print(text)
16
17