![]() |
How do you track multiple blobs of the same color?
From the C++ APIs how do you get an array of color particles in the image. The FindColor() function, which is what is demonstrated in the demos, only returns the largest particle.
I read the API Docs, but I didn't find an easy way to get all of the particles. |
Re: How do you track multiple blobs of the same color?
The easiest thing to do would be to modify the WPILib code. You could modify the GetLargestParticle function in TrackAPI.cpp to return, say, the three largest particles, and then modify FindColor to return particle analysis reports for all three.
Personally, though, I'm planning to have my team completely rewrite the camera stuff to better suit this year's purposes, and to use C++ classes. |
Re: How do you track multiple blobs of the same color?
Quote:
|
| All times are GMT -5. The time now is 10:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi