How to Detect Text in OpenCV [Python]

  Рет қаралды 35,391

CreepyD

CreepyD

Күн бұрын

Пікірлер: 53
@jasemshark1917
@jasemshark1917 4 жыл бұрын
I like your funny words magic man
@ghzich017
@ghzich017 3 жыл бұрын
Thanks! Nevee thought it was this easy
@FlimzyYT
@FlimzyYT 8 ай бұрын
absolute legend.
@yungbazerk
@yungbazerk 3 жыл бұрын
its been so long man Great job man im the guy who said make a video where the bot edits ur videos or
@lucaspadilha6721
@lucaspadilha6721 3 жыл бұрын
awesome, I really like how you explain so clearly this topics! can you do a video to show how to work with database, for example: identify a pen when it pass to specific area?
@CreepyD246
@CreepyD246 3 жыл бұрын
Never worked with databases before, but I'll do my research and hopefully one day bring an awesome tutorial, just got demotivated to do KZbin recently but I'm working on getting back soon, thanks man :D
@AlfSune
@AlfSune Ай бұрын
Hello, what changes do I make so I can detect texts in real time with a camera? Thank you 😓
@eljangoolak
@eljangoolak 3 жыл бұрын
hmmm not sure if i wanna download from a link by creepyD, but on a serious note, cool video
@ibrahimimohssine8131
@ibrahimimohssine8131 2 жыл бұрын
hey thank you for this smart explication, could i use this to identity card text detection.
@CreepyD246
@CreepyD246 2 жыл бұрын
Like for play cards (hearts, spades, and such)? If yes, then sure, it's possible, but my tutorial only checks for normal text, like this comment. You can do some research about haarcascades in OpenCV, and then also research how to make your own haarcascades (this will help with detecting your own custom stuff). If you were talking about credit cards and such, then this tutorial should work. (Any card with just normal text and no other abnormal symbols/shapes/icons should work)
@0kjack102
@0kjack102 2 жыл бұрын
Is it possible to read text off your actual screen while it's changing?
@inertiaarch3798
@inertiaarch3798 3 жыл бұрын
ur a genius bro sheeeeesh 😳
@CreepyD246
@CreepyD246 3 жыл бұрын
Haven't seen your name in a while man, good to see it again, and thanks xD
@Priyanka-xh9gs
@Priyanka-xh9gs 3 жыл бұрын
This doesn’t work if there are indentations in the line like when u start a new paragraph, how would we get that to work, thanks!
@SchallCF
@SchallCF 2 жыл бұрын
hey, thanks for the tutorial. could i calculate with help of the coordinates from the boxes the font size in pixels or points? cheers
@MrTerrorblade
@MrTerrorblade 3 жыл бұрын
Hi, ive tried scanning a document and converting it to png format but it could not detect anything. Wondering if u could help
@balahuraadrian9342
@balahuraadrian9342 3 жыл бұрын
Hi and thank you for your tutorial. Is it possible to use instead of a image a video streaming?
@CreepyD246
@CreepyD246 3 жыл бұрын
Yes, but you would need to change a few things, instead of using a single image, you need to use OpenCV's VideoCapture function, just search it up on KZbin, it's too complex to explain in a single comment, sorry man :(
@balahuraadrian9342
@balahuraadrian9342 3 жыл бұрын
@@CreepyD246 Now that is a good idea for your next tutorial. I think lots of people would like this. There's not much info on live feed text recognition. Have a nice evening.
@Tansuo-Zhe
@Tansuo-Zhe 3 жыл бұрын
Nice Vid! i Subscribed lol! :D
@atnguyenduy9933
@atnguyenduy9933 3 жыл бұрын
Can you export the location of texts in a image ? Example in this video: 'big' includes 4 corners. Outputfile will have: x0,y0,x1,y1,x2,y2,x3,y3, big and pp,small,pp,12,3 respectively. Thanks !
@CreepyD246
@CreepyD246 3 жыл бұрын
Yes :D In the for loop, we set x y w h variables, after wr have set them you can just go ahead and write them into a file, let me know if you still have any questions
@atnguyenduy9933
@atnguyenduy9933 3 жыл бұрын
@@CreepyD246 Oh thank you very much, Could you show me this code? It is still difficult for me to think how to code
@dicololiviu2818
@dicololiviu2818 2 жыл бұрын
pytesseract.tesseract_cmd = "C:\\Program Files\\Tesseract-OCR\\tesseract.exe" image_data = pytesseract.image_to_data('urphoto.pmg', output_type=Output.DICT) for i, word in enumerate(image_data['text']): if word == required_word: x, y, w, h = image_data['left'][i],image_data['top'][i],image_data['width'][i],image_data['height'][i] center_x = x + int(w / 2) center_y = y + int(h / 2) points = (center_x, center_y)
@gamerb-fz1oj
@gamerb-fz1oj 3 жыл бұрын
does this support handwritting detection?, probably not but i hope it does
@CreepyD246
@CreepyD246 3 жыл бұрын
I guess it does, but only if it's nicely done so that the computer sees each letter seperated, as well as nicely written
@gamerb-fz1oj
@gamerb-fz1oj 3 жыл бұрын
@@CreepyD246 NOPE, does not, well in my case it does not, and I just want to translate a huge letter written on a black image, when i wrote the letter C it gave me the output: "The white egg" is white" Idk what this library sniffed but i bet it was good
@CreepyD246
@CreepyD246 3 жыл бұрын
You'd have to use another method then, you could maybe train and create a haarcascade to detect handwritten letters
@gamerb-fz1oj
@gamerb-fz1oj 3 жыл бұрын
@@CreepyD246 yeah i got a lot to learn. Just recently got into open cv, thanks tho
@asarma0804
@asarma0804 4 жыл бұрын
How come you switched to sublime?
@CreepyD246
@CreepyD246 4 жыл бұрын
I just wanted to test out some new text editors lmao
@asarma0804
@asarma0804 4 жыл бұрын
@@CreepyD246 ah right
@divad2237
@divad2237 3 жыл бұрын
Nice video 👏
@ZeusKabooze
@ZeusKabooze 3 жыл бұрын
Can anyone point me in the right direction of making up a script where it detects a colour, if the colour is true it will then activate a macro key?
@radun337
@radun337 3 жыл бұрын
i need the same thing but cant find it
@USBEN.
@USBEN. 3 жыл бұрын
Pyautogui
@8king274
@8king274 3 жыл бұрын
[ NOTE ] in your tutorial in the third line no r"filename" why you can run it successfully .and me follow your code always get error I spend maybe 4h to fix this r" ". but no metter how thanks you so much for make a small light to make us go forward it really helpfull .
@CreepyD246
@CreepyD246 3 жыл бұрын
Sorry about your struggles. Have you downloaded pytesseract and given the correct path?
@8king274
@8king274 3 жыл бұрын
@@CreepyD246 Yes brother I copy path the same as you do it your toturail but just if me don't put r"path" it geting error 🤣
@senthilramana
@senthilramana 2 жыл бұрын
I have a series of numbers in my image at the bottom. Sample 5095 2974 6032 The print(img["text"]) shows the following result. ['', '', '', '', 'saee', 'Quiet', '', '', '', ' ', '', '', '', '8g', '98a', '/', 'DOB', '25:.05/19%', '', '|', 'age', '(Mate', '', '', '', '5095', '2974', '6032', '', '', '', ''] I need to mask the 5095 and 2974 and leave the 6032 and save the image after masking. could you please guide me? Thanking you in advance
@saalimmohammed1599
@saalimmohammed1599 3 жыл бұрын
great!
@marcelwagenaar2663
@marcelwagenaar2663 4 жыл бұрын
❄️
@SKULLY.Y
@SKULLY.Y 3 жыл бұрын
hey ma i like ur edits 🔥ive been recently lookin for an editor do u think ur interested?
@CreepyD246
@CreepyD246 3 жыл бұрын
I swear... KZbin keeps deleting my replies or something
@SKULLY.Y
@SKULLY.Y 3 жыл бұрын
@@CreepyD246 ikr that happens to me sumtimes
@CreepyD246
@CreepyD246 3 жыл бұрын
@@SKULLY.Y yeah, I messaged you on Discord though
@KnownAsN1
@KnownAsN1 3 жыл бұрын
nobody me: MLG is not dead it lives on forever in my heart. not funny ik
@sevindaherath
@sevindaherath 4 жыл бұрын
1st
@ShimoNova-R.H.D
@ShimoNova-R.H.D 4 жыл бұрын
Lol nice.
@sevindaherath
@sevindaherath 4 жыл бұрын
:D
@CreepyD246
@CreepyD246 4 жыл бұрын
:D
@wishIKnewHowToLove
@wishIKnewHowToLove 3 жыл бұрын
cowmodpc
How to Detect Colors in OpenCV [Python]
6:51
CreepyD
Рет қаралды 42 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Text detection with Python and Opencv | OCR using EasyOCR | Computer vision tutorial
15:39
How to use Bounding Boxes with OpenCV (OCR in Python Tutorials 03.02)
18:27
Python Tutorials for Digital Humanities
Рет қаралды 54 М.
Image Processing with OpenCV and Python
20:38
Rob Mulla
Рет қаралды 194 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 85 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
Extract PDF Content with Python
13:15
NeuralNine
Рет қаралды 236 М.
How to make advanced image recognition bots using python
15:01
Kian Brose
Рет қаралды 1,4 МЛН
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
Optical Character Recognition with EasyOCR and Python | OCR PyTorch
16:00
Nicholas Renotte
Рет қаралды 153 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН