![]() |
how to use openCV?
Does OpenCV have a program that will spit out code for you similar to what the NI Vision Assistant program does? If it does, it seems like using OpenCV will be easier for my team to implement and understand how our rectangle tracking works, as we are having some trouble understanding the code that is spit out by Vision Assistant.
|
Re: how to use openCV?
Opencv would have to be ported to vxworks. If you use that you would have to do off crio processing. I am attempting that now.
|
Re: how to use openCV?
doing the processing off cRIO has always been the plan, could you let me know if you have success in porting it?
|
Re: how to use openCV?
Just to make you aware, ColorImage and Binary image implement a number of features that you would likely have in your NI Vision Assistant generated code in a c++ interface that is much cleaner, we gutted most of the code out of the vision assist generated stuff except for the convex hull and the particle filter; the threshold and particle analysis are both done in the C++ outside. (we also switched the vision assist file to a cpp file to evade some big errors)
I wouldn't worry to much about trying to fully understand the inards of the generated code, just because C code is written much differently, and maybe confusing to the students. Simply minimize how much of it you are using, make sure they understand what is in the generated code, how it was created from the script, and how to interface with it. Edit: Also, if you plan to do vision processing on the driver station, I've been told that competition network can be an issue with the added latency. |
Re: how to use openCV?
the biggest issue with the NIVA code is we aren't sure how it outputs the particle analysis measurements. Latency shouldn't be an issue as we are planning to use it just to establish a baseline of where we need to get to, and use a gyro to actually do the positioning, and finally going back to use the camera to double check that we got to the correct position.
|
Re: how to use openCV?
Quote:
|
Re: how to use openCV?
well, what i was really trying to figure out is if there is a program that will spit out vision processing code using the WPIJavaCV libraries, as those will both be easier to understand and be compatible with java. we are currently planning to do the processing on the driver station laptop
|
Re: how to use openCV?
Quote:
Paul, in your first post you say that to do off cRIO processing you would have to port openCV into vxWorks, but then in your most recent post you say you don't need to port it to do off cRIO processing. |
Re: how to use openCV?
Another programmer from team 2523 here...
To clarify- we plan to do the following: 1. Get the image from the camera. 2. Process image on drivestation computer. To do this we use the javacv libraries included in SmartDashboard. We determine the offset of the target from the center of the camera image. 3. Using NetworkTables, send this data back to the robot 4. Move the robot. 5. Rinse, repeat :) AFAIK, The OpenCV has to be written manually. Am I right? An automation utility would be great... Thanks! violinuxer |
Re: how to use openCV?
OpenCV is just a set of C++/Java/Python libraries. It doesn't generate any code for you....
|
Re: how to use openCV?
One more thing: where might we find the docs for WPI's JavaCV implementation?
Thanks! violinuxer |
Re: how to use openCV?
Quote:
http://pastebin.com/cYtQiKpF Gotta love javadocs! violinuxer |
Re: how to use openCV?
Quote:
Code:
binaryImage = colorImage->ThresholdHSL(######); |
Re: how to use openCV?
Quote:
|
Re: how to use openCV?
Quote:
|
Re: how to use openCV?
Quote:
I am going to use the JavaCV wrapper. But you could always send data using c++ you would just have to have code that talks to crio over the network. |
Re: how to use openCV?
Ok we have been running into the issue of not having the wpijavacv libraries. Where can we get these or if we have them already where are they?
|
Re: how to use openCV?
they are downloaded with the smartdashboard
|
Re: how to use openCV?
There is my code to use openCV 2.3 with delphi 7
http://www.developpez.net/forums/d13...i/#post7204310 |
| All times are GMT -5. The time now is 18:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi