02-09-2010 02:51 AM
Hello Friends!
prompt me please!
I want to "teach" my VI to pick out object on image (or video). My VI must to read information (text) from some documents with OCR function. But I must to create ROI myself and my VI works very bad because documents may move and ROI become wrong. So I want to my VI'll find text itself and set ROI on this text. Is it able?
Any help and example will thanked!
Solved! Go to Solution.
02-09-2010 02:57 AM
02-09-2010 03:03 AM
02-09-2010 03:23 AM
02-09-2010 03:37 AM
02-09-2010 03:51 AM
Thanks! I have made clamp already, but it is no comfortable for me. I have solved to do my VI more perfection.
How I can to set ROI myself when snap with camera has done already? What is the function or functions do it possible?
02-09-2010 04:00 AM
02-09-2010 04:09 AM
I am trying now. Thanks for idea!
02-09-2010 05:16 AM
Something like that:
First detect two edges of the driving license, then compute intersection between two edges, then set coordinate system, and after that reposition ROI in OCR step depend from coordinate system:
Now OCR work also for rotated image:
Take a note, that Straight Edge (Rake) will works for 8 bit images. Because RGB is not supported you will need to convert your color image to grayscale.
Script in attachment.
Andrey.
02-09-2010 05:42 AM
.