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.1.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.1-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visioncore_frc-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 032e5a4012811c60f8540bee15c5ab7820a13f97b18e61f4cc89317e2147e93d
MD5 81409e4a4a51c2c24e3e47010496146c
BLAKE2b-256 6c318cfb1ae7d4449d0eeecf4d28fceacd2687fcba26275d5846cb05babad4bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: visioncore_frc-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe1fde9386819e7dc3b8e6646ed5bfbc53795359df92914fdec0f941992c940b
MD5 26dffae6681fb91ea117f5135d37b2c1
BLAKE2b-256 6ab78bb82118ffe68a3a0021cc92f6d52b52374826acec1bab7924cdcb5bd766

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