Skip to content

!empty() in function 'cv::CascadeClassifier::detectMultiScale' #8

@AntonSax

Description

@AntonSax

I'm continually receiving this error message upon running the command.

beginning FaceImage run for image path: Selfie_a_Day_Project_January_2019\20190131_210126.jpg
Starting Selfie_a_Day_Project_January_2019\20190131_210126.jpg
No eyes found, falling back on face

*** Incomplete: Selfie_a_Day_Project_January_2019\20190131_210126.jpg ***
Traceback (most recent call last):
File "C:\Users\Tony\Documents\Projects\facealign\src\FaceImage.py", line 343, in runFaceImage
fi.cropToFace()
File "C:\Users\Tony\Documents\Projects\facealign\src\FaceImage.py", line 117, in cropToFace
face = self._getFace()
File "C:\Users\Tony\Documents\Projects\facealign\src\FaceImage.py", line 257, in _getFace
faces = toRects(cascade.detectMultiScale(self.image))
cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions