https://github.com/team401/vision-tutorials
FRC Vision Tutorials
https://github.com/team401/vision-tutorials
cpp frc vision
Last synced: about 2 months ago
JSON representation
FRC Vision Tutorials
- Host: GitHub
- URL: https://github.com/team401/vision-tutorials
- Owner: team401
- License: gpl-3.0
- Created: 2017-03-15T20:13:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-25T20:23:50.000Z (almost 9 years ago)
- Last Synced: 2025-06-18T16:49:36.604Z (about 1 year ago)
- Topics: cpp, frc, vision
- Language: C++
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
401 Vision
===================
[](./LICENSE.md)
**NOTE:** This code will **_only_** run on a Linux based operating system. [Ubuntu](https://www.ubuntu.com/download) is free, easy to install, and great for beginners. You will also need to install OpenCV, the installation guides for the most common distros of Linux can be found [here](#install).
This is FRC Team 401 Copperhead Robotics' Vision Code for 2017, the files in this repository are the three most important files used in vision processing for STEAMWORKS. We used a Playstation Eye webcam as our main camera and the traditional green LED ring. The following files are included:
- [Main.cpp:](https://github.com/and3212/FRC_2017_Vision/wiki/Main.cpp) The main vision processing file that calculates yaw, pitch, and distance
- [flCalculator.cpp:](https://github.com/and3212/FRC_2017_Vision/wiki/flCalculator.cpp) Finds the focal length of your camera, import for being used in Main.cpp
- [hsvFinder.cpp:](https://github.com/and3212/FRC_2017_Vision/wiki/hsvFinder.cpp) Finds the HSV values of a pixel while looking through your camera
----------
OpenCV Installation
-------------
[Ubuntu Guide](http://rodrigoberriel.com/2014/10/installing-opencv-3-0-0-on-ubuntu-14-04/)
[Debian Guide](https://indranilsinharoy.com/2012/11/01/installing-opencv-on-linux/)
[Fedora Guide](http://docs.opencv.org/3.1.0/dd/dd5/tutorial_py_setup_in_fedora.html#gsc.tab=0)
[Arch Guide](https://www.archlinux.org/packages/extra/i686/opencv/)
Running one of the Programs
-------------
Open up a terminal and navigate to the folder and run the following commands:
Create a directory called build
```shell
mkdir build
```
Go inside of build
```shell
cd build
```
Set up CMake so it can easily compile code on the fly
```shell
cmake ..
```
Compile the code to create runnable files
```shell
make
```
Go back up a directory
```shell
cd ..
```
Run the selected file
```shell
./bin/FILENAME
```
----------
For any questions about our vision code you can reach us [here](http://team401.org/contact), good luck to all of the teams out there this year!