![]() |
New Vision sample program
There is a new vision sample program included with the latest update of WPILibJ (just posted on the update site). Also, in the WPILib project, Documents section, there is a paper describing how it works. In addition, also in the Documents section, there are some sample images to play with and a Vision Assistant script that was used to create the sample code.
Please provide some feedback on this sample and the paper. Brad |
Re: New Vision sample program
This has already helped us a lot. Our team had been struggling for quite a while trying to figure out how to track but the paper and the sample code simplified it drastically! Thanks a bunch!
|
Re: New Vision sample program
Can you please provide a link to the update site you are referring to?
Thanks |
Re: New Vision sample program
There was a thread about this but here http://firstforge.wpi.edu/sf/frs/do/...e ans_modules
|
Re: New Vision sample program
I've found the sample code but I can't find the document. Could someone provide the link?
Edit: Never mind, found it at http://firstforge.wpi.edu/sf/go/doc1304?nav=1 |
Re: New Vision sample program
Will the Eclipse plugin be updated, too?
|
Re: New Vision sample program
Thanks, Brad - this is very helpful. We are still in the process of figuring out whether we want to do onboard or offboard image processing, but at least with this update, doing it onboard is a viable option!
|
Re: New Vision sample program
If we use a red led ring, the sample code should work, correct? There is nothing we have to change for it to run correctly? We are having some trouble getting it to work.....
|
Re: New Vision sample program
Quote:
Also, what problem are you having? Brad |
Re: New Vision sample program
In regards to the earlier Eclipse question, the plug-ins will soon be updated to include this sample
|
Re: New Vision sample program
Would anyone be able to suggest a light ring to use? This could be extremely useful but my team does not currently have a light ring.
|
Re: New Vision sample program
Quote:
|
Re: New Vision sample program
I don't seem to be able to download the "Detecting Vision Targets in C++ and Java" PDF from FirstForge.
Reasons? Doc |
Re: New Vision sample program
Quote:
Use the angel eye lights. For extra brightness you can get two sizes and nest them. Brad |
Re: New Vision sample program
Quote:
Brad |
Re: New Vision sample program
I have a question regarding the sample program, given that we have an image, what's to do with it? How can I begin to translate the image into motor movement?
|
Re: New Vision sample program
are there javadocs for the new code?
|
Re: New Vision sample program
Quote:
Quote:
|
Re: New Vision sample program
Is there a Netbeans plugin update? So far it looks like the CriteriaCollection, which is used in the Java sample code, doesn't exist.
|
Re: New Vision sample program
Quote:
If your Netbeans isn't set to update every startup/day, go into the Plugins and Reload the updates page. |
Re: New Vision sample program
We're doing something very similar to the sample code (thresholding, convex hull, particle analysis), and finding it takes about a second to process each image on the cRio--far too slow for automated targeting.
Has anyone else been able to get the code to work onboard, with acceptable performance? Thanks, Steve (software mentor for team 649) |
Re: New Vision sample program
Hi,
We copied the sample code into our project and are using the sample images provided. When we run it we get zero particles found. I added some extra code to print a particle report after every image operation and find that there are particles before the final filter is run(see below). I also had a question about the following lines: Code:
cc = new CriteriaCollection();a) crop the entire image to the described rectangle and return particles in the cropped area. b) only return particles that fit in the size of described rectangle, so search entire image for particles that fit. Here's the code and output. I am using 10ft2.jpg in this example output. I also tried the other xxft2.jpg images and got the same result, the last filter found zero particles. Code:
BinaryImage bigObjectsImage = thresholdImage.removeSmallObjects(false, 2);Quote:
|
Re: New Vision sample program
Turns out someone had changed the low R param of the RGB filter (from 25 to 40) while switching between our green light filter and sample's red light filter. I changed it back to 25 and was able to run the sample code in our robot project and find targets. Once that worked we are guessing that the criteria lines add a filter that looks for particles that are in the size range 30,40 to 400,400.
Code:
cc.addCriteria(MeasurementType.IMAQ_MT_BOUNDING_RECT_WIDTH, 30, 400, false); |
Re: New Vision sample program
We are a second year team that is trying at this late stage in the build cycle to do some image analysis. We have a high level question to help us visualize how to make this work. We are using Java.
Where is the best place to do the image analysis? It seems we have a couple of possibilities: 1. Send images from camera to cRio and then run the image analysis code on cRio. 2. Send images from camera to laptop and then run the image analysis code on laptop 3. Send images from camera to cRio and access the images using ftp to laptop and run image analysis on laptop Are teams using all of these alternatives? Which one is most popular? Recommendations? Other alternatives we haven't thought of? thanks Dave Fischer - mentor Jasper Indiana team 3559 |
| All times are GMT -5. The time now is 12:11. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi