05-04-2015 11:18 AM
Hello!
i'm writing a program where i'll need to extract 6 ROIs for OCR from the same picture( Name ....)the regions i want to extract are in the picture selected (the rectangles in green),i've read that it's possible using ROI ungroup or ROI group,how can i do that?if you think there's an easier way any advice will be helpful,please feel free to reply if you have any questions. thanks in advance for your help.
05-04-2015 12:51 PM
How do you want to extract them?manually? automatic using some reference?
05-04-2015 03:50 PM
automatically,i want to choose the ROIs before so the user will only enter the picture
05-05-2015 06:42 AM - edited 05-05-2015 06:45 AM
Hello,
yes, just use ungroup ROIs and for loop to perform OCR in the individual region.
I don't know how you've created the ROI's, but If you want them in a specific order you can sort them prior to recognition (for example, from smallest to largest top vertical coordinate).
Best regards,
K
05-07-2015 04:53 PM
thank you for your help,i haven't created the ROIs yet because i didn't know how i'll continue after that,how can i sort them?thank you in advance
05-08-2015 10:59 AM
Hey Tmmed,
The sorting should be done by the auto indexed input and output tunnels of the for loop, so in the order that you select the ROIs they will input the for loop, then output the strings in the same order into an array.
Regards!
>>Daniel C.
05-08-2015 04:18 PM
@tmmed wrote:
thank you for your help,i haven't created the ROIs yet because i didn't know how i'll continue after that,how can i sort them?thank you in advance
Hello,
no matter how you create the ROI's you can sort them for example by the left global rectangle coordinate that describes the ROI:
You can use different sorting parameters, but it would involve a little bit more work.
Regards,
K