![]() |
Vision Code HELP!!!!
Hello,
I am trying to get our vision code to count the pixels in a certain region to see if the goal is hot. Code:
/*----------------------------------------------------------------------------*/ |
Re: Vision Code HELP!!!!
You should just try to capture one image (not in a while loop) and verify that it is there using FTP. Every time you capture an image it gets saved to the cRIO Flash, so you will run out of memory quickly if you continue to capture images within your while loop (unless you deleted it and I didn't see that in your code).
My guess is that your exception is coming from not being able to store the image because you are out of memory (from previous runs of the program) or something else unrelated to your code. FTP into the device to see if there are any images saved. Try testing the vision code that was handed to us with the latest Netbeans plugin. There is a sample program included (you can get to it by creating a new project and choosing samples) |
Re: Vision Code HELP!!!!
The robot only tries to get an image the first time through the loop due to the switch statement. Once it has an image, it then processes it based on color and then it goes to the for loop, with each action one pass through the loop.
|
Re: Vision Code HELP!!!!
Did you get his figured out?
If not, take a look at two classes in javadocs. BinaryImage and ParticleAnalysisReport. You can save yourself a lot of work with these. Good luck! |
| All times are GMT -5. The time now is 02:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi