Comments (4)
i just replace flags=cv2.cv.CV_HAAR_SCALE_IMAGE by flags=cv2.CASCADE_SCALE_IMAGE
it works
from webcam-face-detect.
- first, create a virtual environment by the below command
virtualenv environmentname
- now a virtual environment is created
- u need to activate the virtual environment by typing the below command
source environmentname/bin/activate
- now install opencv package
pip install opencv-contrib-python
- After successful installation, run the below command to run the project
python webcam.py
from webcam-face-detect.
i have the same problem
Traceback (most recent call last):
File "webcam.py", line 20, in
flags=cv2.cv.CV_HAAR_SCALE_IMAGE
AttributeError: 'module' object has no attribute 'cv'
from webcam-face-detect.
Try running in Pycharm or Spyder and initially install opencv by -
a. Packages for standard desktop environments (Windows, macOS, almost any GNU/Linux distribution)
Option 1 - Main modules package: pip install opencv-python
Option 2 - Full package (contains both main modules and contrib/extra modules): pip install opencv-contrib-python
from webcam-face-detect.
Related Issues (15)
- Attribute Error in webcam.py HOT 1
- cv2 version
- Errors using cv3 version when using sudo
- Add a requirements.txt
- Code optimisation required for CV3
- code not working with opencv 3 HOT 1
- CV_HAAR_SCALE_IMAGE compatibility HOT 4
- 會閃退
- webcam_cv3 work well, continue to develop it(recognition).
- error open camera
- IndexError: list of index out of range HOT 1
- !_src.empty() in function 'cvtColor'
- Cv module is outdated HOT 1
- Can't detect 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 webcam-face-detect.