Skip to content

About

a rapid, powerful, easy-to-use and open-source vision framework for FRC

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Phantom Vision

Yet another powerful and easy-to-use computer vision solution for FRC

Team 5516 "Iron Maple" proudly presents

Introduction

Are Limelights too costly? Are coprocessors too complicated? Introducing Phantom Vision: an affordable, powerful, and open-source computer vision solution for FRC. We aim to make computer vision a zero-barrier technology for beginner teams.

Features

Hardware-Accelerated AprilTags Detection

The system's detection of AprilTags is enhanced with GPU acceleration, achieving up to 90fps with minimal CPU load, courtesy of the advanced AI Micro-Processor.

alt text

AI GamePiece Detection with pretrained dataset

A custom AI object-detection application using NVIDIA Jetson's edge AI libraries with a pre-trained dataset for gamepieces, achieving high accuracy and reliability in gamepieces detection.

Communicating with robotRIO

A publisher-subscriber network interface to stream results to the robot controller in real-time. alt text

Camera Auto-Calibration Process

An innovative solution that automates the camera calibration process, where the robot is programmed to autonomously navigate to various distances and orient itself at different angles. Concurrently, the system captures frames and analyzes result matrices to determine the camera's field of view (FOV) and installation angle using linear regression method. alt text

Alt Text 1 Alt Text 2

Installation Guide

  1. Purchase Parts:

  2. Preparations

    • Download our modified Jetpack System Image here
    • Install Pygame, which is used for our DashBoard
    • Download the CAD File of 3D-Printed Camera
  3. Install:

    • The jetson Nano comes with a DC-Power-Cable, cut the wire and connect to the VRM.
    • Connect the Jetson Nano to the robot-radio via ethernet
    • Connect the April Tag Camera to the Jetson Nano
    • Stick the Camera into its shell using glue, and secure the shell on a horizontal surface. If you do not use our version of camera shell, you would have to calibrate the camera using server/calibration.py
    • Measure the height of camera in reference to the ground.
  4. Run:

    • WARNING! Before you power on, if you are using a custom Voltage Regular Module, unplug Jetson and Check that you have set the voltage to 5.2V~5.5V
    • Power on the robot. The system image is already well-configured such that Phantom Vision will start automatically on boot.
    • Connect to the robot in driverstation and open a browser, type "onbot-jetson.local:5800" and you should be able to see the camera live stream"
    • run dashboard/client.py, you should be able to see the robot's position on field

API

The API reference can be found in the java client

Example Codes

This System has so far been implemented in two robot's control system. Team 5516 Competition Robot "Phantom Ⅰ" and Team 6706 Competition Robot "Phantom Ⅱ". The two robots share the same code.

Contribution

Phantom Vision is a public project, and we welcome anyone from the FIRST Community to contribute. To see what we are currently working on, check our TODOs list.

About

a rapid, powerful, easy-to-use and open-source vision framework for FRC

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages