View Single Post
  #4   Spotlight this post!  
Unread 28-07-2013, 21:52
DELurker DELurker is offline
Former Engineering Mentor
AKA: William Lydick
no team (n/a)
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Delaware, US
Posts: 268
DELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant futureDELurker has a brilliant future
Re: Vision processing problem (black, jittery images)

Quote:
Originally Posted by Chadfrom308 View Post
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.
Attached Thumbnails
Click image for larger version

Name:	LoadImageToIMAQ.jpg
Views:	13
Size:	15.9 KB
ID:	15113  
__________________
----------------------------------------------
With 1370 --
2012 Rutgers District Event Champions with 1676/56
2012 Lenape District Event Finalists with 2191/1691

2013 TCNJ District Event QuarterFinalists with 1143/4750, Gracious Professionalism Award
2013 Bridgewater-Raritan District Event Semi-Finalists with 4285/223
2013 MAR Championship Finalists (Backup) with 222/11/1403; Gracious Professionalism Award