opencv /osc webcam color-based xy-controller
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt
README.md
cv_pycolorctrl_1-16-19.png
cvcontrol.py
osc_test.py

README.md

CV_PyColorCtrl

opencv /osc webcam color-based xy-controller

  • uses Python 3 and requires opencv-python (OpenCV 4.0), and python-osc

cv_pycolorctrl demo

Components

  • cvcontrol.py - detects blue and red objects so far and sends osc messages out on port 32323
    • format: "o,x,y" string where o is flag for object detected (0/1), and x and y are x- and y- coords ([0,0] top-left, [1,1] bottom-right)
  • osc_test.py - test reception of osc messages with tags /red, /blue, etc.

Notes

  • haven't made user-friendly yet (i.e. choosing video input)

LICENSE

gpl v 3