Hi there, I’m the founder of Pysource.
I’m a Computer Vision Consultant, developer and Course instructor.
I help Companies and Developers to build efficient computer vision software.
13 comments
hello i got one error code how do i fix it?
faces = face_cascade.detectMultiScale(gray, [1.1, [neighbours]])
TypeError: must be real number, not list
faces = face_cascade.detectMultiScale(gray, [1.1, [neighbours]])
replace by this line of code
faces = face_cascade.detectMultiScale(gray, 1.1, neighbours)
I copy your code, but my pycharm report error:
Traceback (most recent call last):
File “F:/OpenCV/OpenCV_Draw1.py”, line 20, in
faces = face_cascade.detectMultiScale(gray, 1.3, neighbours)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’
Can you help me fix this error
i have the same probleme
can u please tell me what should i do to fix it
just give “/ “instead of “\” in the address of the image, If you use pycharm, it’ll work
actually the error is occuring because of you are not defining the correct path of the harcascade file
the harcascade file is missing or named differently or u dont have the file in your directory
try to fix this i.e the file path(i mean location of file or address ok hope it helps whoever gets stuck:))
pycharm report error
C:\Users\pc\PycharmProjects\facerecognition\venv\Scripts\python.exe C:/Users/pc/PycharmProjects/facerecognition/identification.py
Traceback (most recent call last):
File “C:/Users/pc/PycharmProjects/facerecognition/identification.py”, line 21, in
faces = face_cascade.detectMultiScale(gray, 1.3, neighbours)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’
can u help me please
tell me what should i do ?
File “/Users/ujjwalabhishek/Desktop/deep learning/AutoEncoders/untitled6.py”, line 29, in
faces = face_cascade.detectMultiScale(gray, 1.3, neighbours)
error: OpenCV(3.4.2) /opt/concourse/worker/volumes/live/9523d527-1b9e-48e0-7ed0-a36adde286f0/volume/opencv-suite_1535558719691/work/modules/objdetect/src/cascadedetect.cpp:1698: error: (-215:Assertion failed) !empty() in function ‘detectMultiScale’
hello i got one error code how do i fix it?
faces = face_cascade.detectMultiScale(gray, [1.1, [neighbours]])
TypeError: must be real number, not list
faces = face_cascade.detectMultiScale(gray, [1.1, [neighbours]])
replace by this line of code
faces = face_cascade.detectMultiScale(gray, 1.1, neighbours)
I copy your code, but my pycharm report error:
Traceback (most recent call last):
File “F:/OpenCV/OpenCV_Draw1.py”, line 20, in
faces = face_cascade.detectMultiScale(gray, 1.3, neighbours)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’
Can you help me fix this error
Hi, it says that image is empty, so probably you’re not correctly loading the image or importing the frame from the camera.
i have the same probleme
can u please tell me what should i do to fix it
just give “/ “instead of “\” in the address of the image, If you use pycharm, it’ll work
actually the error is occuring because of you are not defining the correct path of the harcascade file
the harcascade file is missing or named differently or u dont have the file in your directory
try to fix this i.e the file path(i mean location of file or address ok hope it helps whoever gets stuck:))
En una laptop con cámara frontal cómo sería?
pycharm report error
C:\Users\pc\PycharmProjects\facerecognition\venv\Scripts\python.exe C:/Users/pc/PycharmProjects/facerecognition/identification.py
Traceback (most recent call last):
File “C:/Users/pc/PycharmProjects/facerecognition/identification.py”, line 21, in
faces = face_cascade.detectMultiScale(gray, 1.3, neighbours)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function ‘cv::CascadeClassifier::detectMultiScale’
can u help me please
tell me what should i do ?
it’s giving multiple rectangles for one face
Hello. How to recognize hand gestures? Can you help me? Thanks very much
Hi, I’m facing following error
cv2.error: OpenCV(3.4.2) c:\projects\opencv-python\opencv\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function ‘cv::CvtHelper<struct cv::Set,struct cv::Set,struct cv::Set,2>::CvtHelper’
i have an error here below when i run this code
runfile(‘/Users/ujjwalabhishek/Desktop/deep learning/AutoEncoders/untitled6.py’, wdir=’/Users/ujjwalabhishek/Desktop/deep learning/AutoEncoders’)
Traceback (most recent call last):
File “/Users/ujjwalabhishek/Desktop/deep learning/AutoEncoders/untitled6.py”, line 29, in
faces = face_cascade.detectMultiScale(gray, 1.3, neighbours)
error: OpenCV(3.4.2) /opt/concourse/worker/volumes/live/9523d527-1b9e-48e0-7ed0-a36adde286f0/volume/opencv-suite_1535558719691/work/modules/objdetect/src/cascadedetect.cpp:1698: error: (-215:Assertion failed) !empty() in function ‘detectMultiScale’