Giter VIP home page Giter VIP logo

Comments (5)

jcsamuels avatar jcsamuels commented on June 16, 2024

I am having trouble resolving this error
cv2.error: C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1698: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale

from facedetect.

jcsamuels avatar jcsamuels commented on June 16, 2024

Any help would be greatly appreciated

from facedetect.

shantnu avatar shantnu commented on June 16, 2024

You need to check your version of OpenCV and/or Python

from facedetect.

SanjeetS7 avatar SanjeetS7 commented on June 16, 2024

This is related to the path where xml files are stored.
A simple manipulation with code will solve this issue.

I am using anaconda on Linux and my path is given in new_path variable.

new_path = '/home/shukla/anaconda3/lib/python3.6/site-packages/cv2/'
#load cascade classifier training file for haarcascade 
haar_face_cascade = cv2.CascadeClassifier(new_path + 'data/haarcascade_frontalface_alt.xml')

from facedetect.

Mirzonabot avatar Mirzonabot commented on June 16, 2024

This is related to the path where xml files are stored.
A simple manipulation with code will solve this issue.

I am using anaconda on Linux and my path is given in new_path variable.

new_path = '/home/shukla/anaconda3/lib/python3.6/site-packages/cv2/'
#load cascade classifier training file for haarcascade 
haar_face_cascade = cv2.CascadeClassifier(new_path + 'data/haarcascade_frontalface_alt.xml')

How to load cascade classifier training file fo haarcascade

from facedetect.

Related Issues (18)

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.