Skip to content

Instantly share code, notes, and snippets.

@Sentinels5599
Sentinels5599 / PythonSandbox.py
Created January 24, 2019 22:00
JeVois GRIP Vision Issues (PythonSandbox.py)
import libjevois as jevois
import cv2
import numpy as np
## Simple example of image processing using OpenCV in Python on JeVois
#
# This module is a basic FRC vision process.
#
# By default, it first gets an image, blurs it, extracts the green channel, thresholds that, and uses the threshold to place
# a mask over the initial image. It then runs an HSV filter on the masked image, erodes and dilates the result, and finally