Quote:
Originally Posted by Chadfrom308
I have been working on an image processing system for recognizing 2012 basket balls. I have it working really well except for the very end, where it gives me a black image that switches between black and color really quickly for some reason. I compressed it and lowered the framerate to where my computer can handle it. the Vision tool says I can do it at around 25fps and i have it set to 15.
It seems to be the image processing itself that is creating the stuttering images. I have it working on a standard, default driverstation and even then it doesnt work with the processing. Without the processing, it is fine and clear as day. Can anyone help me?
|
Here are some suggestions based on my learning for how to do vision processing:
1) Start with a static image. Take a photo of the balls or even create a JPG or GIF with several red, orange, green, and blue circles on it. See if the code will detect the orange circles from the static image. This will tell you if there is a flaw in your processing algorithm.
2) Use a USB webcam attached to your development PC to track a mock-up of your targets, whether on paper or in miniature. The VIs for USB webcams are easy to download (and free). This will narrow down any IMAQ issues that you have.
3) Use the whole shebang with the robot and such to try it for real. If there's a problem at this stage, it probably has something to do with your communications link/bandwidth.
If you do each of these, you can narrow down which part of the system is giving you trouble.
I've attached a pic of my static image loading segment.