Giter Site home page Giter Site logo

gesturedetection's People

Contributors

vasuagrawal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gesturedetection's Issues

Errors

is your code compatible with opencv2?I am getting so much errors.

File "", line 1, in
runfile('F:/major 2/OTHER CODES/vasu/GestureDetection-master/current_src/testImplementation.py', wdir='F:/major 2/OTHER CODES/vasu/GestureDetection-master/current_src')

File "C:\Users\admin\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
execfile(filename, namespace)

File "C:\Users\admin\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 87, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)

File "F:/major 2/OTHER CODES/vasu/GestureDetection-master/current_src/testImplementation.py", line 205, in
GestureDemo().run()

File "F:/major 2/OTHER CODES/vasu/GestureDetection-master/current_src/testImplementation.py", line 199, in run
super(GestureDemo, self).run()

File "eventBasedAnimationClass.py", line 47, in run
self.onTimerFiredWrapper()

File "eventBasedAnimationClass.py", line 31, in onTimerFiredWrapper
self.redrawAll()

File "F:/major 2/OTHER CODES/vasu/GestureDetection-master/current_src/testImplementation.py", line 192, in redrawAll
self.drawCVImages()

File "F:/major 2/OTHER CODES/vasu/GestureDetection-master/current_src/testImplementation.py", line 169, in drawCVImages
self.CVHandles.append(self.canvas.create_image(0, 0, image=self.imagetk,anchor="nw"))

File "C:\Users\admin\Anaconda2\lib\lib-tk\Tkinter.py", line 2315, in create_image
return self._create('image', args, kw)

File "C:\Users\admin\Anaconda2\lib\lib-tk\Tkinter.py", line 2306, in _create
*(args + self._options(cnf, kw))))

TclError: image "pyimage20" doesn't exist

The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Sir i have run a code on window 8.1 OS .so in this drawDefects function those error occur please help me sir.

def drawDefects(self, bubbles = False):
defectPoints = []
minDistance = 1000
if self.defects != None: # in this line give a error
for i in self.defects:
if i[0][3] > minDistance:
defectPoints.append(self.handContour[i[0][2]])
defectPoints = np.array(defectPoints, dtype=np.int32)
if bubbles:
self.drawBubbles(defectPoints, (0, 0, 255), width=10)

In python3.5 and opencv 3.1, I got a error

Thanks Vasu Agrawal.
First,This is a very good project!
But in python3.5 and opencv3.1.0 I got a error.
Error manage as follows:
ValueError: too many values to unpack (expected 2)
GesturesApi.py", line 122 cv2.CHAIN_APPROX_SIMPLE)

ImportError: cannot import name ImageTK

When running testimplementation.py, I run into this error:
ImportError: cannot import name ImageTK

It seems that in line 4 of the code it refers to PIL and tries to import Image and ImageTK from that. However where do I find PIL? There is no document in the repository that is PIL

Anyone knows how to solve this? The deadline for the project is coming soon and I seem stuck on every code I have tried!

OpenCV error. Version : 2.4.11

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /home/travis/miniconda/conda-bld/work/opencv-2.4.11/modules/imgproc/src/color.cpp, line 3739
Traceback (most recent call last):
File "testImplementation.py", line 206, in
GestureDemo().run()
File "testImplementation.py", line 200, in run
super(GestureDemo, self).run()
File "/home/kathirdrone/Desktop/ARDRONE /GestureDetection/GestureDetection/current_src/eventBasedAnimationClass.py", line 47, in run
self.onTimerFiredWrapper()
File "/home/kathirdrone/Desktop/ARDRONE /GestureDetection/GestureDetection/current_src/eventBasedAnimationClass.py", line 30, in onTimerFiredWrapper
self.onTimerFired()
File "testImplementation.py", line 125, in onTimerFired
self.gp.process()
File "/home/kathirdrone/Desktop/ARDRONE /GestureDetection/GestureDetection/current_src/GesturesApi.py", line 297, in process
self.threshold()
File "/home/kathirdrone/Desktop/ARDRONE /GestureDetection/GestureDetection/current_src/GesturesApi.py", line 111, in threshold
grey = cv2.cvtColor(self.original, cv2.COLOR_BGR2GRAY)
cv2.error: /home/travis/miniconda/conda-bld/work/opencv-2.4.11/modules/imgproc/src/color.cpp:3739: error: (-215) scn == 3 || scn == 4 in function cvtColor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.