:eek: I need a program of labview for Axis camera, I am in a FRC team and I need a labview code to make the camera distinguish the distance of an object and colors, could someone help me?
This is not a trivial task. Can you post a picture of the Object you are trying to identify?
Also include a picture of the surrounding of the object.
Look around in the Vision and FRC Vision palettes for basic stuff. You might be able to accomplish what you’re trying with blob recognition and filtering.
If you really want to go high class, FIRST has let us use NI’s vision software for making custom VIs for specific vision purposes. It’s quite advanced but there is documentation lying around somewhere; look around NI’s help community at ni.com/first.
Agreed, this isn’t a walk in the park, prepare for some research. Usually FIRST gives us code specific to the game that will allow us to do this. In the past couple years the code they have given us was quite helpful if you used it right.
The NI Vision Assistant that RoboMaster mentioned is actually quite easy to use - at least, it’s easier than building the VI yourself from scratch.
It lets you use images already stored on your computer, or you can hook up your axis camera and aquire images directly from that.
The image processing VIs can run on your computer as well as the cRIO, so that makes it easier to test.
One thing to note:
IMAQ uses the same memory space to store the image as it manipulates it. If you want to duplicate the image or extract multiple color planes, make sure to create a new memory space; otherwise the image you intended to preserve will get written over.