Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

display the detected image

Hello everyone,

 

I have created a VI which is actually detecting the image now I am stuck on how to display the detected image. Please can someone help me. 

Download All
0 Kudos
Message 1 of 16
(4,268 Views)

You can try something like this (see the attachment).

Hope it answers the question.

 

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."
0 Kudos
Message 2 of 16
(4,254 Views)

Hello Klemen,

 

Thank you very much but I am intended to display only the rectangualy area not the whole image. Is there any way which can only show the detected rectangualar only. 

 

thanks 

0 Kudos
Message 3 of 16
(4,251 Views)

Hello lazer,

 

In my opinion, the best option is to create an image mask and apply it to the image. Take a look at the "IMAQ ROIToMask 2 VI".

 

Your matching algorithm outputs "Rectangles" which gives you the coordinates of the corners and the angle. Use this to build the ROI - I belive "IMAQ Convert Rectangle to ROI" is capable of this. Then transform the ROI to mask and apply it.

 

I currently do not have a PC with Labview, so I do not have any evidence to support this. But I can try to help you tommorw in case you get stuck. Or maybe someone else has a better solution.

 

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 4 of 16
(4,237 Views)

Hello Kelmen,

 

Thanks for very good advices. Actually All day I was trying to get something but could not make it. Could you please kindly show this how this will work. It would be a great help for me. Please 

 

Thanks

 

Regards,

 

0 Kudos
Message 5 of 16
(4,228 Views)

Hello lazer,

 

attached is the example of creating an image mask (only for first detected shape with highest score correlation). Be careful about the order of detected corner points - I am not familiar if the output is the same for all orientations of rectangles.

 

You can alternatively also extract that portion of an image, but you have to consider that images are arrays with NxM dimensions, so you can only get a rectangular (square) image as a result. The same goes for image masking of course, but here all values outside the mask are equal to 0, where as when extracting the image you also get the values of pixels surrounding your region of interest.

 


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."
0 Kudos
Message 6 of 16
(4,214 Views)

Hello Kelmen, 

 

I am using LabVIEW 2011. Can you upload the example with version 2011 please. 

Thanks 

 

regards,

0 Kudos
Message 7 of 16
(4,209 Views)

Sorry about that...


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 8 of 16
(4,207 Views)

Thank you. I will let you know if stuck somewhere. Thank you very much for help 

 

regards

0 Kudos
Message 9 of 16
(4,205 Views)

Hello Klemen, 

 

Thank you very much for all help. Actually I am only trying to diplay the solar cell out of the image which is in the shape of rectangular. Is there any way of this. Sorry for asking the same question again. Actually I was trying to find a way to display the olny rectangular solar cell image but could not find it. Sorry again for asking you again. 

 

thanks

regards

0 Kudos
Message 10 of 16
(4,195 Views)