Murray-Bridge-Bunyips / BunyipsFTC

FIRST Tech Challenge Robotics | Teams 15215, 22407, 24736
BSD 3-Clause Clear License
4 stars 0 forks source link

Custom object detection with OpenCV or TFOD #41

Closed bubner closed 7 months ago

bubner commented 8 months ago

Option A) TFOD Use TFOD to train a model for a custom element (red/blue) to pick up on the Spike Marks. This may need to be done after the robot starts and cannot be done during the init-phase (due to potentially having to drive up to the marks)

Option B) OpenCV OpenCV will be faster than TFOD, but rules regulate the colour of objects as team props. This is the preferred option, as we might be able to squeeze this into pre-init, but it's currently unknown.

bubner commented 8 months ago

Discovered a pipeline that can detect Custom Team Prop objects based on averages of tri-sections. TFOD seems to be out of the question at the moment as we don't have a field set up to test.

https://github.com/Murray-Bridge-Bunyips/BunyipsFTC/blob/devid-heath/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/common/vision/TeamProp.java

bubner commented 7 months ago

OpenCV pipeline works well, 3d printing is all done. Ready to go, just need tasks to be done.