Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

VBAI Bench Mark Variation

Hi all,

 

 I developed VBAI code to do pattern matching in NI 1744 smart camera.

 

 Currently using object detection steps before pattern matching to create the ROI.

 

 There was a huge difference between the smart camera Bench mark  and PC Bench mark  for the samecode.

 

 For Object Detection, it is taking 380 ms in smart camera and 7 ms in PC

 

 Can any one tell me, what is the basic mistake I'm doing on this code

 

 Please find the BM in xls attachment.

 

With Thanks & regards Vijayakumar N
0 Kudos
Message 1 of 2
(2,883 Views)

Hi,

 

The processor in the Smart Camera (533 MHz PowerPC) is a lot less powerful than the one in your PC. Your PC might also have multiple cores, for which some algorithms have been optimized for. Therefore, it is expected to see such differences in performance between the two platforms.

Here are a couple ideas to improve the speed on the Smart Camera:

 

1) Is the Vision Assistant step really necessary? The Detect Object step already performs some processing on the image to find the blobs.

2) If you can, decrease the search area for the pattern matching. You might already be doing this using the create ROI (you didn't attach the inspection). The algorithm speed depends on the size of the search area.

3) If you don't need it, turn off the search for rotated pattern.

4) We have 2 different pattern matching algorithm. If your template has well defined edges, try using the Geometric Matching algorithm. You might get faster results with your image.

 

Hope this helps.

 

Christophe

0 Kudos
Message 2 of 2
(2,873 Views)