Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to recognise LEDs

This is the template image i used.

 

Damien

0 Kudos
Message 11 of 14
(1,171 Views)

I have corrected the match pattern, i had the score set too high so it would not pick it up however, i use the set co-ordinates as my reference but for the images at test2 the clamp function shifts its region of interest even though i use the same reference for test1? How can i work it so it does not change?

 

Regards,

 

Damien

0 Kudos
Message 12 of 14
(1,168 Views)

Hi Damien129,

 

Apologies for the delay in getting back to you. 

 

I was out of the office on Friday and Monday.

 

I have been looking at your latest script and was trying to find why the clamp ROI would shift between the two images. I tried playing around with the settings but ended up getting the same issue as you.

 

I have figured out a way to ensure the ROI stays in the same place relative to the reference point, even when the image shifts- simply by using a 2nd pattern match function.

 

- Create the pattern match for a region other than the bottom left hand corner- have an object in the region, such as an LED that will be spotted each time.

 

The reason I mention choosing a different location, is because the pattern we looked for before wasn't distinct enough and hence it was moving between images.

 

- Create your coordinate system within that pattern match region, as before.

 

- Create a second pattern match ROI around the frequency values or around the voltage values.

 

Now when you run through the script for both images, the ROI around the frequency is always the same distance from the coordinate system you have just set up.

 

I have attached the script and templates used. This script example is based on the two images you sent me.

 

I hope this helps you further in your application. 

 

Kind Regards,

 

 

Dom C
Download All
Message 13 of 14
(1,154 Views)

Hello Clad19,

 

 

Thank you very much for your help in this matter, i will use a second pattern and will attempt it again.

 

Regards,

 

damien

0 Kudos
Message 14 of 14
(1,151 Views)