π€ FTC AI Ball Tracker
Elite Autonomous Vision System β’ TensorFlow Lite β’ Java
β‘ Limelight-style tracking, powered by on-device AI.
π§ Detection Accuracy pie title AI Ball Detection "Correct" : 92 "False Positive" : 5 "Missed" : 3
Test: Indoor FTC field β’ REV USB Cam β’ 300+ frames
π Performance (Control Hub) bar title FPS vs Model Type x-axis Model y-axis FPS "INT8 TFLite" : 22 "FP16 TFLite" : 14
π§© System Architecture flowchart LR Camera -->|Frames| TFLite TFLite -->|BBox + Score| JavaLogic JavaLogic -->|PID| Motors
βοΈ Core Logic Detect β Center β Steer β Drive β Stop No target β Slow rotate & search
π Tech Stack
Java (FTC SDK 9.x+)
TensorFlow Lite (INT8)
VisionPortal
REV / Logitech USB Camera
π Structure TeamCode/ βββ AI_Ball_Auto.java βββ assets/ βββ ball_model.tflite βββ labels.txt
π Tunables KP = 0.003 // steering sensitivity FORWARD = 0.3 // drive speed STOP_AREA = 20000 // stop threshold
β FTC Compliance
β AI allowed (offline)
β On-device inference
β Internet
β External processors
π Roadmap
PID (I/D) + Odometry
Multi-object priority
OpenCV + AI hybrid fallback
Auto-calibration (lighting)
π License
MIT β use, modify, win π