I wrote some code that can detect notes using color filtering and contour finding. On my laptop camera, it is good at distinguishing between the orange of the note and the red of bumper fabric, but on the usb camera my has, it constantly adjusts its exposure which messes with the colors significantly.
Any suggestions on a better camera we could buy? Also, I’m thinking we are listing going to use a pi 4, as the detection code isn’t demanding, thoughts?
Limelight 3 with Google Coral Processor for ‘Learning’
Works great with anything from AprilTags to reflective tape to simple objects. Like Notes!
Not cheap, though. Requires some amount of knowledge of libraries, dedicated software, and programming.
If the limelight you are currently using has notes within its field of view, you can use it for both april tags and note detection. You can switch between pipeline types during the match over network tables to utilize both types of tracking.
If you using photonvision, you can plug a webcam into your limelight and create a different pipeline for that webcam. Photonvision has inbuilt support for color and contour filtering. As for what webcam to use, I recommend Microsoft Lifecam HD-3000. (You can lock the exposure on this)
Ditto. One thing: It is possible to remove the flexible piece which would normally be used to prop the cam up on a monitor – it requires removing two very small screws (one on each end of the slit in which that mount sits). Doing that allow you to 3D print a mount that won’t flop around.
I was able to detect cones pretty well last year with a HuskyLens. Haven’t tried it on notes though. You’d probably have to have an Arduino as a middle man between it and the Roborio. Good news is though, it’s cheap and easy to use.