Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple ROIs??

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.

0 Kudos
Message 1 of 7
(5,101 Views)

How do you want to extract them?manually? automatic using some reference?

0 Kudos
Message 2 of 7
(5,090 Views)

automatically,i want to choose the ROIs before so the user will only enter the picture

0 Kudos
Message 3 of 7
(5,082 Views)

Hello,

 

yes, just use ungroup ROIs and for loop to perform OCR in the individual region.

 

Example_VI_BD.png

 

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


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Message 4 of 7
(5,065 Views)

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

0 Kudos
Message 5 of 7
(5,033 Views)

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.

0 Kudos
Message 6 of 7
(5,018 Views)

@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:

 

Example_VI_BD.png

 

You can use different sorting parameters, but it would involve a little bit more work.

 

Regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 7 of 7
(5,009 Views)