Giter Club home page Giter Club logo

Comments (4)

akhelloufi avatar akhelloufi commented on July 29, 2024 2

i just replace flags=cv2.cv.CV_HAAR_SCALE_IMAGE by flags=cv2.CASCADE_SCALE_IMAGE
it works

from webcam-face-detect.

Naveenpatke avatar Naveenpatke commented on July 29, 2024
  • 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.

dz0ne avatar dz0ne commented on July 29, 2024

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.

adarshsingh2001 avatar adarshsingh2001 commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.