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 is my code:
http://puu.sh/3NtmX.png
Here is what I see most of the time:
http://puu.sh/3NtpZ.png
The Code (a little walk-through):
I start with the standard read image, and put it though some processing.
The math at the top right simply puts the circle detection data onto the output image. I want the image to display a color image with a green circle around the ball, and for the most part, it does. For some reason it is getting black frames in it.