Comments (2)
Can you specify the version of OpenCV used by you?
It seems that you are getting the error because the function cv2.findContours is returning only two values instead of three values.
A possible cause will be you are using OpenCV version less than 3.0.
A possible solution is to remove the variable im2 at line no. 118, the change is given below:
im2, cnts, hierarchy = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) ---> current line
cnts, hierarchy = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) ---> changed line
from human-detection-and-tracking.
it's work thanks
from human-detection-and-tracking.
Related Issues (20)
- This node is not a map nor an empty collection HOT 5
- this code with python3.6 and opencv3.4 HOT 1
- The node is neither a map nor an empty collection in function 'cvGetFileNodeByName' HOT 1
- python3 opencv 3.4.1 HOT 2
- python3 opencv 3.4.1 HOT 6
- how to apply usb-camera to this codes? HOT 1
- core dump occurred when running ./humandetect ../GEM_time.mp4 HOT 1
- Labelling Issue HOT 3
- error in runing code HOT 2
- run error HOT 1
- imutils import error HOT 1
- neural network HOT 4
- main.py returns assertion failed HOT 5
- error in reading 'model.yaml' HOT 1
- base) C:\Users\ssbilakeri\Human-detection-and-Tracking-master>python create_face_model.py usage: create_face_model.py [-h] -i IMAGES create_face_model.py: error: the following arguments are required: -i/--images how to fix this error HOT 2
- ['C:\\Users\\jatin\\Downloads\\Human-detection-and-Tracking-master\\Human-detection-and-Tracking-master\\video\\1.mp4'] (720, 1280, 3) (450, 800, 3) Traceback (most recent call last): File "main.py", line 160, in <module> temp = background_subtraction(previous_frame, frame_resized_grayscale, min_area) File "main.py", line 118, in background_subtraction im2, cnts, hierarchy = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) ValueError: not enough values to unpack (expected 3, got 2) HOT 1
- can this project run on windows
- Mi
- Can it run on OpenCV 4?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from human-detection-and-tracking.