Skip to content

chenPerach/Open-Vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Vision

open vision is an attempt to ease development of vision processing code during an FRC season. this project is written in python and uses the open cv image processing library.

as an example the code in the project solves the FRC 2019 Deep Space vision challange. 2019_image_example 2019_image_example

note that this project can do much more then that. different image

Guide

this project requires you to have the open cv library for python if you don't have it just use this following command:

pip install python-opencv

note that this project uses opencv version 4.2.0 numpy version 1.16.6 and python version 3.6.9 and that different version could cause unwanted errors

Cool now how do I make this project my own?

that's easy! first you need to understand how to project is structured. app/processor.py (yeah I know that's a bad name) handles the importent stuff, that being the pipe line of the project. in the run method you can just write whatever opencv code you want and it will handle it perfectly

one more thing you should note when writing code is that the function expects you to return a map of stuff. I personaly put images, debug messages and the processing's results in there and handle them in the main.py file. that map will be used for farther development. like streaming these images and slider on a local site

TODO

there's still alot to do in this project

  • add a deploy script that will copy the project to a raspberry pi and run it on startup.
  • add a script to change the ip address of the RPI from dynamic to static or vice versa
  • add a web server that allows to debug and control the code from the robot.

this project started as rewrite of this, my first solution to the FRC 2019 vision processing challange, this was my first ever coding challange and I had fun doing it

About

this repository is meant to show a better solution for the 2019 vision FRC challenge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages