Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

I,ve been trying to use the "IMAQ Count Objects" but it seems it does not return anything. I,m not sure if i need a grayscale image as an input? anyone can help

The input to "Count Objects" needs to be a binary image. You must threshold a grayscale image for it to work properly.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 4
(3,263 Views)
Hi Bruse
I think the input to the Count object should be a grayscale. If you look into the vi itself you find that there is a thresholding before going to object detection. Although I am not very clear with the count objects but i think the problem is the ROI is set to a zero area by default while it should be the whole picture. I did try to modify the roi and it did work.
Message 3 of 4
(3,263 Views)
It looks like you are correct. I was thinking of the input to "Complex Measure", which requires the binary image. I started with IMAQ back when we had to chain all the routines together ourselves, instead of having a single vi that did everything for us.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 4
(3,263 Views)