Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

a framework that wraps opencv for our needs in FRC

Project description

Spikes ComputerVision Framework

Spikes ComputerVision Framework, or scvf for short, is a framework that is made to make programming CV for the FRC easier

This framework wraps opencv and pipelines generated by grip in a way that is efficient and elegant.

Installation Instructions:

$ python3 -m pip install --index-url https://test.pypi.org/simple/ scvf

API

communication through network tables

use the pipeline_name key to send the pipeline_name
use the camera_id key to send the camera id
use the exposure key to send the exposure for the camera

pipeline compatibility

Though we recommend grip as the main tool to generate cv2 pipelines using grip is not strictly required
You can provide any object to server as a pipeline as long as it contains the next two methods:
process() - a method that processes a given image
get_output() - a method that returns the output of the processing

IO functions

scvf receives two functions that are responsibble for comunications with external data sources.

  1. settings_supplier(callback) this function receives settings and supplies them to callback provided to it.
  2. output_consumber(output) this function sends the output of the image processing to it's next destination

Notes

GRIP and SCVF compatibility

if you are using grip to generate your pipelines keep in mind that the pipelines generated from it aren't compatible with scvf out of the box due to differences between python3 and python2

as of now, these changes are required:

  • change the enum for the blur type to a python3-enum
  • change the findContours function as instructed here
  • add a get_output() method that is compatible with the API specified above

IO implementations

  • make sure that your custom output_consumer is compatible with the output provided by your pipelines.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
scvf-1.0.0-py3-none-any.whl (7.4 kB) Copy SHA256 hash SHA256 Wheel py3 Oct 18, 2018
scvf-1.0.0.tar.gz (4.4 kB) Copy SHA256 hash SHA256 Source None Oct 18, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page