🎅 Christmas Udemy Cupons 🎅 Ends in 1 day! 89% OFF! 🎁 Python Docx from Beginner to Winner 🎅 www.udemy.com/course/python-docx-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎁 Python PDF Handling from Beginner to Winner 2023 🎅 www.udemy.com/course/python-pdf-handling-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎁 Python TkInter from Beginner to Winner 2023 🎅 www.udemy.com/course/python-tkinter-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎁 Python ReportLab from Beginner to Winner 2023 🎅 www.udemy.com/course/python-reportlab-from-beginner-to-winner/?couponCode=DECEMBER_19_22 🎅 Cupons de Natal 🎅 Termina em 1 dia! 89% de desconto! 🎁 Python Docx de Iniciante a Vencedor 🎅 www.udemy.com/course/python-docx-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22 🎁 Python Manipulação de PDF de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-manipulacao-de-pdf-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22 🎁 Python TkInter de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-tkinter-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22 🎁 Gerando Arquivos PDF com Python e ReportLab 2023 🎅 www.udemy.com/course/gerando-arquivos-pdf-com-python-e-reportlab/?couponCode=DECEMBER_19_22 🎁 Python ReportLab de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-reportlab-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
you're very welcome ☺️☺️☺️🙌 i will publish this Sunday a video with another option!!! Meanwhile you can see this: Python cool tutorials: ruclips.net/p/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu 🔥🔥🔥 thank youuu for watching 🙌
This video was more useful that the 5 documentations that I read. Thank you. Short, simple, strait to the point, and showed us the error and what I had to install that no one else told me to.
i bet it's very repetitive but i wanted to stop by and say thanks, this video rlly was the difference between learning smth in 40mins or 4 mins so great job, man!!
Nicely done but i have a question. If tesseract needs a exe file to be called while running how can we deploy it to a cloud? How can we call the tesseract exe if the code is deployed to cloud?
it did not work for me at first if you are still having the same erro appearing,just replace the "\" with "/" in the path instead of: tess.pytesseract.tesseract_cmd=r"C:\Users\gss\AppData\Local\Tesseract-OCR\tesseract.exe" do: tess.pytesseract.tesseract_cmd=r"C:/Users/gss/AppData/Local/Tesseract-OCR/tesseract.exe"
Thank you so so so much but i have a little question: How do i change the directory so tesseract can know where to look for files? thanks in advance! edit: nevermind i figured it out
@@AllTechPage yes I did , it worked Thank you. I was using Visual Studio like you did in the video and the code didn't work but then when I copy pasted the same code to atom editor it worked. Thank you for replying to me, it means a lot.
Traceback (most recent call last): File "F:\all\python sourses\123.py", line 4, in img = Image.open('text.png') File "C:\Users\grapf\AppData\Local\Programs\Python\Python38-32\lib\site-packages\PIL\Image.py", line 2809, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'text.png'
on my Mac this worked import pytesseract as tess #tess.pytesseract.tesseract_cmd = r'C:\Users\AllTech\AppData\Local\Tesseract-OCR\tesseract.exe' from PIL import Image img = Image.open('textHand.png') text = tess.image_to_string(img) print(text)
If you can't find the folder in the path mentioned at 3:40 then try looking in C:\ Program Files Mine ended up there Hope that helps save anyone some time!
Wow very good, but the problem is "If the text is very clear and crisp its is showing output correctly", But I want to know if the image has multiple data not only text for example "bills, taken calendar photo or any kind of images", How to print the string from that, I tried my self it's not printing anything, Any idea for this?
Well I believe that AI is not sooo advanced for that at the moment..because captchas still are a valid way to distinguish humans from machines...the moment that kind of technology is available for all of us, captches will disappear!
I recently started trying python (I am a developer, mostly c#, but also PHP and javascript.) Not to you personally, but this is garbage. Why do we need all these extra steps to make something work. When another developer pulls in a project, install all the packages. The project should work. But nooooo... python packages requires you to install something else + PATH variable etc.... pure garbage. Think am gonna drop python very soon.
Thank you very much Latha :)) Actually I have this video about converting text to speech: ruclips.net/video/TKtqLZh6NHA/видео.html And now I am doing small videos about python multiple choice questions and answers: ruclips.net/p/PLOGAj7tCqHx-lll9SkuU8ue_NaCIKN9pG What do you thing about those?
PATH, what about PATH?? Why did I waste a whole day trying to put Tesseract into PATH?? Was the application even needed?? God I hope I didn't install a malware.
I tried taking a cropped image of the google page search results after you search and it's not handwritten so I would think it could read it. But...it can't. with just the lines of code you gave, it doesn't read it properly. Do you know what I can do to train the model to recognize the font type and size of the images I'm using and how to save that so I can rerun it for any search results on google?
Hello Aaron, I'm sorry but I can't do it now because I don't have a mac and I'm still poor and I can't buy one now ahaha...if people share this stuff maybe I'll get enough money to buy one and start doing it for mac users too :) Thanks for watching and for the comment :)
Hello again, Yes it is possible. You need to provide a second parameter to: pytesseract.image_to_string(img, lang='deu') - deu for german. I did not tested this! I don't know if it is required to install any language pack or something.
Hello thank you for the video. Is there a way to get the image preprocessed by the tesseract algorithm? When running tesseract in cmd I can get it by setting tessedit_write_images = 1, but in python I couldn't find a way to get preprocessed image.
🎅 Christmas Udemy Cupons 🎅 Ends in 1 day! 89% OFF!
🎁 Python Docx from Beginner to Winner 🎅 www.udemy.com/course/python-docx-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎁 Python PDF Handling from Beginner to Winner 2023 🎅 www.udemy.com/course/python-pdf-handling-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎁 Python TkInter from Beginner to Winner 2023 🎅 www.udemy.com/course/python-tkinter-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎁 Python ReportLab from Beginner to Winner 2023 🎅 www.udemy.com/course/python-reportlab-from-beginner-to-winner/?couponCode=DECEMBER_19_22
🎅 Cupons de Natal 🎅 Termina em 1 dia! 89% de desconto!
🎁 Python Docx de Iniciante a Vencedor 🎅 www.udemy.com/course/python-docx-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
🎁 Python Manipulação de PDF de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-manipulacao-de-pdf-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
🎁 Python TkInter de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-tkinter-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
🎁 Gerando Arquivos PDF com Python e ReportLab 2023 🎅 www.udemy.com/course/gerando-arquivos-pdf-com-python-e-reportlab/?couponCode=DECEMBER_19_22
🎁 Python ReportLab de Iniciante a Vencedor 2023 🎅 www.udemy.com/course/python-reportlab-de-iniciante-a-vencedor/?couponCode=DECEMBER_19_22
if i want to dedect a number
can i do it that the code can read the text from some coordinates on my pc without puting and image like text in a game for expample
Exactly what I was looking for thank you
you're very welcome ☺️☺️☺️🙌
i will publish this Sunday a video with another option!!!
Meanwhile you can see this: Python cool tutorials: ruclips.net/p/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu 🔥🔥🔥
thank youuu for watching 🙌
Thanks, I’ll watch some of those videos
This video was more useful that the 5 documentations that I read. Thank you. Short, simple, strait to the point, and showed us the error and what I had to install that no one else told me to.
thank you thank you very much for the support pancake king 😊😊
simple, concise, doesn’t waste time :) i loved this video, thank you and i wish you well
thank you very much Amagicmuffin 😊
by the way..do you have any suggestion for a future video? something that you would like to see ?
The path for me was slightly different: "C:\Users\USERNAME\AppData\Local\Programs\Tesseract-OCR\tesseract.exe"
Thank you Tristan 😊💪👍
Mine was C:\Program Files\Tesseract-OCR
Can you please let me know how to know tesseract path
Ultra like. You solved a issue that no forum could. Thank you very much!
Really?!?! I was not aware of that!!!! lol
Thank you Vitor ^.^
i bet it's very repetitive but i wanted to stop by and say thanks, this video rlly was the difference between learning smth in 40mins or 4 mins so great job, man!!
Thank you very very much! This kind of comments actually motivates me to do more stuff and try to do it better! Thank you ^.^
So this is why my installation was reading everything as blank... what an install process. Thank you.
this is so cool, can you compare it with PaddleOCR next time? I heard it works great in some cases.
This channel deserves much more subscribers. The content was very funny and still solved the problem
Thank you Apurva for your comment :)
Show this to your friends, maybe they will like too :)
Nicely done but i have a question.
If tesseract needs a exe file to be called while running how can we deploy it to a cloud?
How can we call the tesseract exe if the code is deployed to cloud?
Did you find out a way?
it did not work for me at first
if you are still having the same erro appearing,just replace the "\" with "/" in the path
instead of:
tess.pytesseract.tesseract_cmd=r"C:\Users\gss\AppData\Local\Tesseract-OCR\tesseract.exe"
do:
tess.pytesseract.tesseract_cmd=r"C:/Users/gss/AppData/Local/Tesseract-OCR/tesseract.exe"
also thanks to AllTech
you saved a lot of time to countless people ;):)
Thank you Moncef for the complement and the contribution too :) Much appreciated
Thanks you so much man!
This process is far better than the Open OCR. And it works great for scanned documents.
thank you Leonardo 😊
Thank you so so so much but i have a little question: How do i change the directory so tesseract can know where to look for files? thanks in advance!
edit: nevermind i figured it out
You can key in full path to your folder/file
nice thanks buddy
I.like.the.way.you.talk.
Thank.you.so.much.for.this
=) keep.it up.bro.tha
Thanks youuu :)
Please help , I am getting No module named pytesseract error. I tried using your program from the drive also but it shows the same error. Please help
Did you followed all the instructions shown on the video?
@@AllTechPage yes I did , it worked Thank you. I was using Visual Studio like you did in the video and the code didn't work but then when I copy pasted the same code to atom editor it worked. Thank you for replying to me, it means a lot.
It's nice to know it worked. You're welcome, I try to answer the majority of comments...because they are a lot sometimes I loose track of some :\
You are very quick and clear, keep it up!
Thank you very much xNovanoid :)
Fantastic
Thank you so much William 😀
Also you can check this other tutorials: ruclips.net/p/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu
Traceback (most recent call last):
File "F:\all\python sourses\123.py", line 4, in
img = Image.open('text.png')
File "C:\Users\grapf\AppData\Local\Programs\Python\Python38-32\lib\site-packages\PIL\Image.py", line 2809, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'text.png'
Hello Grapfik,
The file exists in that location?
Or, there is enough security permissions for your script access that location?
@@AllTechPage Yup I just double-checked. And I think it's a problem with PIL
Uhmm maybe updating the package pillow?
@@AllTechPage ok, but I'll do that tomorrow
@@kupinaa did it work by updating package pillow?
i too am facing the same issue
how can we save the extracted text of image into a word file through python could you pleas make a video on this
I think by using the open() and .write functions you can put it into a txt.
Thank you very much for this video, it's save my effort for read multiple documentation
on my Mac this worked
import pytesseract as tess
#tess.pytesseract.tesseract_cmd = r'C:\Users\AllTech\AppData\Local\Tesseract-OCR\tesseract.exe'
from PIL import Image
img = Image.open('textHand.png')
text = tess.image_to_string(img)
print(text)
If you can't find the folder in the path mentioned at 3:40 then try looking in C:\ Program Files
Mine ended up there
Hope that helps save anyone some time!
It worked! But I fund the the tesseract in other path: "C:\Program Files\Tesseract-OCR\tesseract.exe"
Subscribed. You just explained something big and ultra useful in an easy way. Thx a lot.
Ohh thank you too Rahul ^.^
pytesseract.pytesseract.TSVNotSupported: TSV output not supported. Tesseract >= 3.05 required
can you help me
facing error as sample.png directory not found
Thank you for the valuable information i try in jupyter notebook it worked💓💓💓
Thanks for your video. But I use macos, how to run it on macos, please help me! thank you so much!
I don't know because i don't have a mac...i pin this message so maybe someone replies to you :)
First, you can start with "pip install pytesseract" on mac terminal.
bro, if u still need help, give me your email I can help u
lolipopstick26@gmail.com
type me and ill help you
you can try stackoverflow.com/questions/50655738/how-do-i-resolve-a-tesseractnotfounderror
'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\tess_c72yvzjh.txt'
it shows error
Can you show the error message?
Straight up and really great explanation, thanks
Thank you Fachri :)
how to link text extrect software with excel sheet or Google sheet pls help
Eh... I am using an IDE and that too on a smartphone. I can't download packages
Palette images with Transparency expressed in bytes should be converted to RGBA images
warnings.warn(
what should I do?
Hi friend, what do I do if I want to read image on screen using python
i get sth like: Syntax Error (unicode erro) 'unicodeescape' codec cant decode bytes in poistion 203 truncated
solved it with "\\" but now i get the terminal all black? like an space with the terminal black
thank you helped very much for personal project.
Thank you!
Thank you Nick for the support :)
Wow very good, but the problem is "If the text is very clear and crisp its is showing output correctly", But I want to know if the image has multiple data not only text for example "bills, taken calendar photo or any kind of images", How to print the string from that, I tried my self it's not printing anything, Any idea for this?
Well I believe that AI is not sooo advanced for that at the moment..because captchas still are a valid way to distinguish humans from machines...the moment that kind of technology is available for all of us, captches will disappear!
And by the way thank you Gowtham :)
I recently started trying python (I am a developer, mostly c#, but also PHP and javascript.) Not to you personally, but this is garbage. Why do we need all these extra steps to make something work. When another developer pulls in a project, install all the packages. The project should work. But nooooo... python packages requires you to install something else + PATH variable etc.... pure garbage. Think am gonna drop python very soon.
if you want to use tesseract with c# probably you have to do all the same steps. Pytesseract is a wrapper for tesseract.
does it recognize text like from captcha
This video is just perfection
LOL Exactly how did you figure all that out? I haven't tried it yet, but awesome video. :)
I had to read the documentation :p...Thank you very much William, you rock! :D
Which compiler are you using for python. Please reply me
python version 3.8.6 😊
code is running no error BUT there is no
output!
thank you so much :)
you're very welcome Peyton 😊🙌🎉🎉
Don't forget to subscribe and hit the bell 🔔 button to get more videos 🔥🔥🔥
thank you so much.keep going
This vide just saved my life
thanks mate
Thank you very much, bro!!!
Does this work for WSL as well?
it's really helpful
what can i do to use utf-8 characters?
I have no such file or directory error
I tried this but it did not give me the 100 % exact text on the image some data was skipped, any solution?
you haver other options, see this one: ruclips.net/video/MIaIM6CLViQ/видео.html
This video is helpful for me. Thanks!!
You're welcome Jeff!
By the way, this is another option: ruclips.net/video/MIaIM6CLViQ/видео.html
it worked thanks a lot! do video on converting image to text to speech
Thank you very much Latha :))
Actually I have this video about converting text to speech:
ruclips.net/video/TKtqLZh6NHA/видео.html
And now I am doing small videos about python multiple choice questions and answers: ruclips.net/p/PLOGAj7tCqHx-lll9SkuU8ue_NaCIKN9pG
What do you thing about those?
@@AllTechPage yaaa i saw it too thank you very much ! doing a great job!
PATH, what about PATH?? Why did I waste a whole day trying to put Tesseract into PATH?? Was the application even needed?? God I hope I didn't install a malware.
So I deleted it and I got the same issue, then I added it again, put in PATH, same issue. BUT I remembered you gotta reset your PC. GG Bois
The devil is in the details 😎
How to install it on Macos?
Thank you so much :) It worked !!
You're very welcome Suriya 😀
woooah concept made easy
gr8 work dude
Thank you Advik :)
Saved my life
It's working, this tutorial is awesome...Thank you for sharing....
dude you are a lifesaver thank you very much
You're welcome Pavan, thank you ^.^
Yo I’m on Mac
thank you
I tried taking a cropped image of the google page search results after you search and it's not handwritten so I would think it could read it. But...it can't. with just the lines of code you gave, it doesn't read it properly. Do you know what I can do to train the model to recognize the font type and size of the images I'm using and how to save that so I can rerun it for any search results on google?
would you teach number digit to text with MacBook please; thank you in advance😀😀😀😀
A proper video for getting started. Kudos 👏👏
Thanks a ton Nikon :D
your are save my day. Thank you very much for your tutorials
You're welcome Kishore :)
Superb explanation.. hatsoff bro
thank you very much ☺️
Great
could you do this for us mac users because I am really struggling thanks!
Hello Aaron,
I'm sorry but I can't do it now because I don't have a mac and I'm still poor and I can't buy one now ahaha...if people share this stuff maybe I'll get enough money to buy one and start doing it for mac users too :)
Thanks for watching and for the comment :)
Very very good, thanks
you're welcome!! also i have another option, with easy OCR: ruclips.net/video/MIaIM6CLViQ/видео.html
This video helped me to do some cool things and saved me from boredom in these days.
Thank You
You're welcome Anonymous :)
You are amazing!! Thanks so much!!!
Thank you Victoria for your comment :)
so we know to extract text but what if we want only some specific text(like only address text) to be extracted , how to do then?
extract the text and then search for what you want with a regex :)
@@AllTechPage thankyou
Is there a way to change the language? If yes how do I change it to german?
Hello again,
Yes it is possible. You need to provide a second parameter to: pytesseract.image_to_string(img, lang='deu') - deu for german. I did not tested this! I don't know if it is required to install any language pack or something.
@@AllTechPage Okay, ill test if it. Thanks
@@AllTechPage Sorry for not answering for so long, I tried it and it works perfectly! Thanks
@@nydery nice to know that :)
erros, erros, erros
simple and fast, THX
Thank you Diego :)
please can you tell me how to load trained data (equ. traineddata ) to use with Pytesseract to detect math equations in the image!
thanks, nice explanation
you're welcome 😁
Thank you very well!
you're welcome 🙌
Also i have this playlist: Python cool tutorials: ruclips.net/p/PLOGAj7tCqHx8UnbicOV7iI-ogWeMmkqyu
Thank you very much!
You're welcome M.Adeeb ^.^
Hello thank you for the video. Is there a way to get the image preprocessed by the tesseract algorithm? When running tesseract in cmd I can get it by setting tessedit_write_images = 1, but in python I couldn't find a way to get preprocessed image.
Like. Quick and easy. Thanks!
You're very welcome ^.^ thanks for the visit
Thank you very much for this video, I would never have managed to make it work without your help!
Thank You!!! ))) Super-Mega-Like )
Thank you m16utah :)
thankyou very much
You're welcome San :)
Best
love u
first one that worked was trying to find out for 2 days now thank you 4rl
This guy's accent made my day. So thanks for tutorial, it worked
Simple and perfect, thanks for share
Thank You, a like from me
I'm glad it helped :) And thank you too :)
God bless you.
Thank you Winston :)
does it work if the image contains numbers?
Your background sound is so annoying.
thank you for your feedback Mahmudul, next time it will have less sounds ☺️
what apps you using? i am a begginer
Hello Chaohai, I'm using Visual Studio Code and Python 3.7 :)