08-05-2010 02:38 AM
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.
08-05-2010 03:57 PM
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