vasuagrawal / gesturedetection Goto Github PK
View Code? Open in Web Editor NEW15-112 Term Project
15-112 Term Project
Hi,
I'm reading your code and have a question about this line code "self.hullPoints = [self.handContour[i[0]] for i in self.hullHandContour]". I think self.hullHandContour is just like vector < int >, so is "[i[0]]" correct? I think it should be "[i]". Am I right? Thank you!
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
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)
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)
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: 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
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.