Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to accelerate the processing time of pattern match

How to accelerate the processing time  of pattern match

 

  If my camera acquire an image in 50ms, but when we analyze this image with pattern match, we need about 300ms. Except using queue to seprate acquisition

 

and analysis to different loops, there is another way to directly accelerate the processing time  of pattern match ? Maybe compact rio with FPGA ?

 

But I saw a paper in NI web, there is no this function in c-rio ?  

 

aa.png

 

 

 

Any suggersion will be very apperciated ~

Ricky

 

0 Kudos
Message 1 of 6
(4,860 Views)

Hello,

 

what matching algorithm are you using? You can reduce time using the Gaussian pyramids algorithm.You can fine tune the parameters using the advanced options.

 

What is your template size/image resolution?

 

I suppose using a computer with better performance would also work...

 

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 6
(4,843 Views)

Are you processing your image in cRIO?

I won't suggest you to do such application since cRIO's CPU is not fast enough to process image (especially "Pattern Matching").

However, you could get better speed if you are doing the patterm matching with higher CPU.

 

0 Kudos
Message 3 of 6
(4,817 Views)

Hi Ting

 

   I didn,t run this program in c-rio and just wonder to know there in another way to shrink the processing time of pattern match.

 

   Because we used 500W pixels camera to seek one pattern to determine this image could be use or not

(I already change picture to mono mode), it spent about 300 ms.

 

   We input image in 50ms and output outcome in 300 ms ,so after a while we got lots of images to wait be analyzed.

 

0 Kudos
Message 4 of 6
(4,781 Views)

Try to minimize the "ROI" for your pattern matching.

The larger ROI you are processing, the longer time you will get.

That means try not to match the whole picture, but just match a certain area.

If you can improve the mechanical so that each DUT's location are similar, you are able to minimize the ROI to match.

Go and negotiate with the engineers in the mechanical department and don't try to do "everything" with computer and software.

Especially when you are developing a vision system, improve the environment and lighting is way ahead of image processing.

0 Kudos
Message 5 of 6
(4,765 Views)

HI Ting1224

 

  Thinks for your suggestion. I will try to decrease the roi in the image.

0 Kudos
Message 6 of 6
(4,758 Views)