Skip to main content

FRC vision pipeline for object detection and field mapping

Project description

2026 Vision Testing

This repository contains vision processing code for 2026 FRC competition. The code is organized into simplified and complex implementations.

Simplified folder: detects fuel and sends positions over network tables. Good for competition and low-latency setups.

Complex folder: does path planning and plotting along with fuel detection. More features but slower.

Important Scripts

video_feed_broadcaster.py - Flask app that streams camera feed to a website yolo_with_cam.py - Runs YOLO vision model on camera (default camera 0) pt_to_wtv.py - Converts .pt files to other formats (onnx, xml, etc) map_maker.py - Interactive window to create a fuel map map_creator.py - Uses the vision model to create a birdseye view from images camera_calibration.py - Calculates focal length constants for camera calibration livestream_reader.py - Reads frames from a livestream using Camera class onnx_to_rknn.py - Converts models to RKNN format

Folder Structure

COMPLEX - path planning and plotting with fuel detection SIMPLIFIED - fuel detection and network tables sending PLOTTERS - plotting and utility experiments YOLO_MODELS - YOLO models and exports

Key Classes

Camera.py - camera configuration and capture CustomDBScan.py - point cloud filtering with DBSCAN NetworkTableHandler.py - network tables communication PathPlanner.py - path planning logic Fuel.py - fuel tracking object FuelTracker.py - fuel tracking helper

Orange Pi 5 Device

IP: 10.22.7.200 Username: ubuntu Password: 2207vision

To access the device, use SSH with the credentials above. To clone the repo on the device: git clone git@github.com:FRC2207/2026-Vision-Testing.git

Common Commands

sudo systemctl restart vision.service - restart the vision service tmux attach -t vision - attach to vision tmux session git pull - update code from repository git reset --hard HEAD - undo local changes git clean -fd - remove untracked files

Model Performance

Model Size Latency FPS Yolov26 nano 99.5ms 10 Yolov11 nano 71.5ms 14 Yolov11 small 98.9ms 10 Yolov11 medium 235.3ms 4 Yolov8 nano 20-30ms 30-50 Yolov8 small 40-60ms 15-25 Yolov5 nano 15-25ms 40-60

Notes

The repository is functional but has rough edges and moved files during testing. When converting models, double-check export settings to avoid losing work. The simplified implementation is recommended for competition use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visioncore_frc-0.1.0.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visioncore_frc-0.1.0-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file visioncore_frc-0.1.0.tar.gz.

File metadata

  • Download URL: visioncore_frc-0.1.0.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for visioncore_frc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b839e64318c75bf73636db8c2e726162dc0bf21ea3cc5d5eaccd8907d34ef9a
MD5 12f07dd4dbe0c431aeb8ac3d6c379ee9
BLAKE2b-256 dccba527b105fbb337777c4d6465320dc5eef3dd814524bf85279c1c5b9ce31b

See more details on using hashes here.

File details

Details for the file visioncore_frc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: visioncore_frc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for visioncore_frc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0364d4640629ea8ca57b4332730cae03e61d2add77027b1cb81803c947d4f593
MD5 042c8d7d374d083b6a8a80200a393072
BLAKE2b-256 ee8e952a3dbdd7c2d9c778740233237dbc2f6cb49291a6c1e6e9631f31c17053

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page