evilport2 / simplegesturerecognition Goto Github PK
View Code? Open in Web Editor NEWA very simple gesture recognition technique using opencv and python
A very simple gesture recognition technique using opencv and python
===== RESTART: C:/Python/Python36-32/boo/twinct trail/gesture_action.py =====
(14, 54, 220, 44, 162, 255)
0 0 0
Traceback (most recent call last):
File "C:/Python/Python36-32/boo/twinct trail/gesture_action.py", line 262, in
gesture_action()
File "C:/Python/Python36-32/boo/twinct trail/gesture_action.py", line 88, in gesture_action
imgHSV = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11178: error: (-215) (scn == 3 || scn == 4) && (depth == 0 || depth == 5) in function cv::cvtColor
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
RESTART: C:\Users\h4x3d\Downloads\Compressed\SimpleGestureRecognition-master\SimpleGestureRecognition-master\gesture_action.py
Traceback (most recent call last):
File "C:\Users\h4x3d\Downloads\Compressed\SimpleGestureRecognition-master\SimpleGestureRecognition-master\gesture_action.py", line 238, in
gesture_action()
File "C:\Users\h4x3d\Downloads\Compressed\SimpleGestureRecognition-master\SimpleGestureRecognition-master\gesture_action.py", line 99, in gesture_action
cnts = contour_area_sort(cnts, 350)
File "C:\Users\h4x3d\Downloads\Compressed\SimpleGestureRecognition-master\SimpleGestureRecognition-master\gesture_action.py", line 21, in contour_area_sort
contours.sort(key = cv2.contourArea, reverse = True)
AttributeError: 'NoneType' object has no attribute 'sort'
Traceback (most recent call last): File "D:\Python Modules\Sample Downloaded Projects\SimpleGestureRecognition-master\SimpleGestureRecognition-master\gesture_action.py", line 136, in gesture_action() File "D:\Python Modules\Sample Downloaded Projects\SimpleGestureRecognition-master\SimpleGestureRecognition-master\gesture_action.py", line 88, in gesture_action line_pts.appendleft(tuple(center1)) UnboundLocalError: local variable 'line_pts' referenced before assignment
Does this work with python 3? I am using python 3.5 with opencv 3.2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.