How to use Bounding Boxes with OpenCV (OCR in Python Tutorials 03.02)

  Рет қаралды 45,680

Python Tutorials for Digital Humanities

Python Tutorials for Digital Humanities

Күн бұрын

If you enjoy this video, please subscribe.
✅Be my Patron: / wjbmattingly
✅PayPal: www.paypal.com/cgi-bin/webscr...
If there's a specific video you would like to see or a tutorial series, let me know in the comments and I will try and make it.
If you liked this video, check out www.PythonHumanities.com, where I have Coding Exercises, Lessons, on-site Python shells where you can experiment with code, and a text version of the material discussed here.
You can follow me at:
/ wjb_mattingly

Пікірлер: 31
@haniihsanuddin9585
@haniihsanuddin9585 9 ай бұрын
1. Blur image (to identify overall structure, and not focusing on text itself) 2. Create threshold (and kernal) to separate text block 3. Perform dilation (~white thickening) 4. Perform contour (finding boundaries) 5. Perform loop to only draw boundrary box of specific size (to exclude small bbox)
@BrandonJF4
@BrandonJF4 Жыл бұрын
Thank you so much, this really helped me make progress on a project!
@letslearn2674
@letslearn2674 Жыл бұрын
This is the one I have been looking for. Thank you so much!
@python-programming
@python-programming Жыл бұрын
No problem !
@steffenhalama5558
@steffenhalama5558 2 жыл бұрын
Very nice video helped me a lot.
@python-programming
@python-programming 2 жыл бұрын
Excellent! Glad it helped!
@DilipDas-ys5ph
@DilipDas-ys5ph Жыл бұрын
Great Thanks !!
@Atharva_S9
@Atharva_S9 2 жыл бұрын
why can't you provide the code for this
@vildanhuseynov6492
@vildanhuseynov6492 2 жыл бұрын
good job man!!!
@python-programming
@python-programming 2 жыл бұрын
Thanks
@farahjabeen7707
@farahjabeen7707 2 жыл бұрын
@Python tutorials for digital humanities can you explain how to make bounding box using pixel location?
@thenotoriousrkf3012
@thenotoriousrkf3012 2 жыл бұрын
I guess, there is an error in your code. From minute 15:45 on, you define the ROI. However, instead of x+h, w would have to be added to x. Therefore, roi should be defined as: roi = image[y:y+h, x:x+w] Since this typo also appears on your GitHub you should change it there as well. Kind regards!
@joshuasmitherman1712
@joshuasmitherman1712 Жыл бұрын
It's not finding the sections for me. It captures the whole document as a section. Any suggestions?
@vildanhuseynov6492
@vildanhuseynov6492 2 жыл бұрын
dude, do you have experience in aligned text?
@conorforster8853
@conorforster8853 Жыл бұрын
Hi, this tutorial series has been the best thing slince sliced bread, and honestly dont know where id be with out it however i am stumped, im trying to read pdfs into jpeg format, the problem arises when i have tables and images within these files that i would like to either skip or try to read into file with out wreacking structure (obviouslty not images within the images). idealy i would like this process to be automated as the final program is not being used by myself but by others less aquainted with technolagy. As of now there is no documentation i can find that helps facilitate this. i know its a long shot but honestly ive hit a wall and if by some chance anyone can help and guidence would or advice would mean the world
@breezyfeels1802
@breezyfeels1802 2 жыл бұрын
Hi, can you please tell how I can have bounding boxes around each question in any question paper? I have tried a lot, but unable to get it. I would be really glad if you could help me..Thanks!
@tiennguyentran9358
@tiennguyentran9358 2 жыл бұрын
*i Love u so much tks u*
@kltr007
@kltr007 Жыл бұрын
Short question: in Box [15] it reads "else cents[1]". Is this a typo and should be "else cnts[1]" or did I miss something? But great content! Keep going!
@pcb5135
@pcb5135 9 ай бұрын
i assume its typo
@ridafatima1739
@ridafatima1739 Ай бұрын
will this work on colored images as well , if not, what changes should I make for the colored images?
@mateussaar4071
@mateussaar4071 2 ай бұрын
MAGIC
@jumbertparrenas3218
@jumbertparrenas3218 Жыл бұрын
Can I ask this is capable to application or only for desktop..? Im asking because this is same on my title thesis.
@nathantafelsky7089
@nathantafelsky7089 Жыл бұрын
It could be used in the source code of an application, or used on different operating systems. Imports and syntax would vary by language and implementation.
@anjuathouse5370
@anjuathouse5370 2 жыл бұрын
could you please make a video on handwritten scanned document image line segmentation
@python-programming
@python-programming 2 жыл бұрын
Sure! I actually wrote that code a year or so ago. I will try and dig it up and make a video on it.
@anjuathouse5370
@anjuathouse5370 2 жыл бұрын
@@python-programming Thank you so much..
@virendartripathi4645
@virendartripathi4645 10 ай бұрын
I can't download the images from the course can you help me so that I can practice this
@khushibaghel220
@khushibaghel220 4 ай бұрын
I am trying to run this in google colab but getting an error: TesseractNotFoundError: C:\Program Files\Tesseract-OCR is not installed or it's not in your PATH. See README file for more information. How to resolve this? I have already added pytesseract in my env variables
@ppmanguin
@ppmanguin Жыл бұрын
at 11:16 I have an error, can you tell me how to fix it? Thank you! error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'boundingRect' > Overload resolution failed: > - array is not a numerical tuple > - Expected Ptr for argument 'array'
@ppmanguin
@ppmanguin Жыл бұрын
fixed by adding a variable, because findContours creates 2 outputs. cnts, new_variable = cv2.findContours(dilate, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
@ROKKor-hs8tg
@ROKKor-hs8tg 7 ай бұрын
كيف يمكن عرض اشكال مطبوعة ف صورة ممسوحة ضوئيا الى ملفdocx
How to Create a List of Named Entities from an Index with OpenCV (OCR in Python Tutorials 03.03)
12:58
Python Tutorials for Digital Humanities
Рет қаралды 13 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 3,8 МЛН
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 90 МЛН
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 142 МЛН
How To Select A Bounding Box In Python With Opencv
6:30
Case Digital
Рет қаралды 943
How to OCR an Index in Python with PyTesseract (OCR in Python Tutorials 03.01)
5:37
Python Tutorials for Digital Humanities
Рет қаралды 17 М.
How to use Tesseract OCR in a Python script (pytesseract)
6:36
JayMartMedia
Рет қаралды 7 М.
Making Text Images Readable Again with Python and OpenCV
11:45
NeuralNine
Рет қаралды 10 М.
How to Install the Libraries (OCR in Python Tutorials 01.02)
11:14
Python Tutorials for Digital Humanities
Рет қаралды 42 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 48 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 3,8 МЛН