FIRST-Tech-Challenge / FtcRobotController

BSD 3-Clause Clear License
856 stars 5.34k forks source link

OpenCV example #857

Open KennanHunter opened 11 months ago

KennanHunter commented 11 months ago

Despite easyopencv being included with the SDK, there are no examples of either using it with the vision portal or without it. If you guys are open to adding more examples into the SDK this far into the season, I could work on this and send it over.

While I love the new vision portal API, it's documentation for advanced users is still lacking.

alan412 commented 11 months ago

While I am not part of the team, there is an example using OpenCV with the VisionPortal in my free book: https://github.com/alan412/LearnJavaForFTC. (Section 16.3)

Windwoes commented 11 months ago

While I love the new vision portal API, it's documentation for advanced users is still lacking.

NB: Truth be told, the VisionPortal API was not really designed with custom team usage of OpenCV in mind (hence e.g. the rather roundabout way the framebuffer must be annotated). It seemed at the time like advanced teams would prefer to simply use the EOCV APIs directly, and call a vision processor object as part of their pipeline if they so desired. However, it seems like a large number of teams prefer the VisionPortal API which runs counter to that assumption.

Windwoes commented 2 months ago

The next release of the SDK will contain VisionProcessors for using OpenCV to perform blob detection or predominant color determination, along with sample OpModes.