Skip to content
Prev Previous commit
Next Next commit
Update Text_to_Handwritten_Text.py
  • Loading branch information
satriii authored Jun 10, 2021
commit 938dbc2262f51351f987bed32b5bdc20ad3aabee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
os.chdir(r"C:\Users\Dell\Downloads")
# Set the Path of Tesseract
pytesseract.pytesseract.tesseract_cmd = r"C:\Users\Dell\AppData\Local\Tesseract-OCR\tesseract.exe"
img = Image.open("GFG.png") # Load the Image
img = Image.open("Text.png") # Load the Image
text = pytesseract.image_to_string(img) # Convert Image to Text
# Convert Text to Hand Written Text
kit.text_to_handwriting(text, rgb=[0, 0, 250])