phfbertoleti / contadorobjetosemmovimento Goto Github PK
View Code? Open in Web Editor NEWContador de objetos em movimento (utilizando OpenCV e Python)
Contador de objetos em movimento (utilizando OpenCV e Python)
__, cnts, _ = cv2.findContours(FrameThresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
ValueError: need more than 2 values to unpack
Probably needs to be changed to cv2.RETR_TREE
Traceback (most recent call last):
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 2729, in size
return a.shape[axis]
AttributeError: 'NoneType' object has no attribute 'shape'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 48, in
height = np.size(Frame,0)
File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 2731, in size
return asarray(a).shape[axis]
IndexError: tuple index out of range
I receive this code when running in the virtual environment, can inform what is the problem?
Traceback (most recent call last):
File "ContadorObjetosEmMovimento.py", line 50, in
height = np.size(Frame,0)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2700, in size
return asarray(a).shape[axis]
IndexError: tuple index out of range
I'm using Python version 2.7.13 and Opencv version : 2.4.9.1
Can you please help me?
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.