Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
here is my code:

from turtle import width 
import pytesseract #pip install tesseract 
import os 
from PIL import Image 
 
 
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\tesseract-ocr\tesseract.exe" #Path to the tesseract  
 
img = Image.open('degrecheck.jpg')# add Image name here with file extention 
text = pytesseract.image_to_string(img) 
 
print(text) 
remember = open('remember.txt','w') 
remember.write(text) 
remember.close() 


What I have tried:

i have write a code but it is extracting full certificate i want to extract only name of person enrolment number of certificate make string and convert into hash
Posted
Comments
Richard MacCutchan 7-Nov-22 4:08am    
You need to parse the text returned from the call to pytesseract.image_to_string(img), into its different parts.
Nauman Electronics 7-Nov-22 7:33am    
can you elaborate and plz explain in detail thanks in advance
Richard MacCutchan 7-Nov-22 7:42am    
No, because I have no idea what data is being returned from the tesseract process.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900