Software · Vision
Tune what the robot's camera thinks is a game piece, then watch it play 15 seconds of auto on what you tuned.
The color filter you have tuned, in Python with OpenCV:
The YOLO settings you have tuned, with Ultralytics. predict() does the confidence filter and NMS for you:
Read more on the Object Detection page.
This lab's robot uses the bottom edge of a box, which is where the object touches the floor. Knowing the camera's height and lens, it turns that pixel into a distance and a direction. Our Jetson sends the angles to the center of the box instead; the Object Detection page shows how. That is why the fan's shirt sends the robot somewhere silly: its box isn't on the floor at all, so the distance is a guess.
Within about a meter of the camera, the floor is out of frame, so the robot has to keep driving to the last place it saw the ball.
This robot uses each detection as if it just happened. Real code should look up where the robot was when the picture was taken, or latency turns into steering error. Run a round on Large and watch how far the boxes trail behind when the robot turns.