02-03-2009 03:06 PM
I am trying to detect a circle that we have placed on top of a robot. Basically, there is a black circle placed on top of a white circle that is used to find the orientation of a robot when taking an image from above. We have a USB camera and a fireWire camera to acquire the images. It works fine and can detect the black circle with the USB camera, but can not with the firewire camera. I saved the image taken by the fireWire camera to a .png file. I then used Vision assistant to redo the way it tries to detect a circle. The attached VI it output is below. The VI below works fine when passing in the image file, but when we try to pass in the image directly from the FireWire camera it does not work. I am running the fireWire camera at 30 Frames per second at 640x480. Basically it appears that both ways of acquiring an image (either from a file or the camera itself) should get the same image. Is there any reason why it works with the file and not with the image acquired directly from the camera?
We are using a Apple iSight FireWire Camera with a CVS 1450
Thanks,
Kevin
02-04-2009 04:16 PM
Hey Kevin,
When you say you are able detect the circle with the USB camera but not the Firewire camera, what is different between the two situations. Are you able to acquire images from your Firewire camera? Are you receiving an error or is the IMAQ Detect Circles portion of your code simply not detecting circles? How do you know that it 'doesn't work.' If you are able to capture pictures from your Firewire camera, you should be able to pass the image to the IMAQ Detect Circles vi just as you did with the image acquired from the file.
Hope some of these questions help identify what might be going wrong in your applications.
Ben
Applications Engineering
National Instruments
02-04-2009 04:20 PM
02-05-2009 04:38 PM
Hey Kevin,
How have you modified your code to use grab? Can you acquire the image fine? Can you do other processing functions after grabbing the image? As in, is this problem isolate to this IMAQ Detect Circles function? How are you indicating that you have found a white spot? I noticed in your sample code that you do not have any indicators coming out of the IMAQ Detect Circles.
Hope these questions help.
Ben
02-10-2009 09:59 AM
I was using grab. I ended up finding the circles a different way. I had a binary image of it and just inverted everything and was able to use particle analysis on that.
Thanks
Kevin