Comments (4)
I am facing the same issue and I also need help regarding this.
from facedetect.
in my python 3.7 on window 8 , and I have installed opencv-python through pip
I import cv2 and sys and everything.. But.. When it reaches imagePath = sys.argv[1] or
cascPath = sys.argv[2] It says:list index out of range. !
I changed it to 0, and it passes, but then it tells me assertion error
for that line: gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
what's the solution?
have you found the solution?
from facedetect.
Hey!
I have faced the very same problem. You need to open up your python file with the Terminal using: "python your_project_name.py your_picture.jpg".
If you are using PyCharm you can find the Terminal on the bottom, it lives between "TODO" and "Python Console" tabs.
Hope it helps.
~Elect96
from facedetect.
I'm facing same issue.
I import sys
image_path = sys.argv[1]
IndexError: list index out of range
I tried with sys.argv[0] it is working fine
from facedetect.
Related Issues (18)
- module attribute error HOT 2
- .cpp:1698: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale HOT 5
- Mark
- the Confidentiality of pictures to be detected HOT 1
- face_detect.py HOT 3
- AttributeError: module 'cv2' has no attribute 'CV_HAAR_SCALE_IMAGE' HOT 2
- AttributeError: module 'cv2.cv2' has no attribute 'cv' HOT 2
- License
- cv2.error: OpenCV(4.1.1) /io/opencv/modules/objdetect/src/cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'detectMultiScale' HOT 6
- cv2.error: OpenCV(4.2.0) ../modules/core/src/persistence.cpp:719: error: (-49:Unknown error code -49) Input file is invalid in function 'open' HOT 1
- Instructions don't work.. HOT 3
- module 'cv2.cv2' has no attribute 'cv' HOT 2
- AttributeError: module 'cv2.cv2' has no attribute 'cv'
- module 'cv2' has no attribute '__version__'
- recognize who's face it is HOT 1
- Face recognition HOT 1
- difference between this cascade file and the one packaged by opencv HOT 1
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 facedetect.