ageitgey / ageitgey/face_recognition
Assertion failed (ssize.width > 0 && ssize.height > 0) in resize after recompiling dlib
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56.8k
- Forks
- 13.7k
- PR merge metrics
- No merged PRs in 30d
Description
- face_recognition version: Latest
- Python version: 3.5
- Operating System: Ubuntu 14.06
Description
I recompiled dlib to compensate for my caveman cpu which doesn't support AVX instructions. Afterwards I run the face_rec_webcam_faster and i'm met with the error below
What I Did
usr/bin/python3.5 "/home/deeplearning/Desktop/face_recognition examples/facerec_from_webcam_faster.py"
`OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /home/deeplearning/opencv-3.2.0/modules/imgproc/src/imgwarp.cpp, line 3492
Traceback (most recent call last):
File "/home/deeplearning/Desktop/face_recognition examples/facerec_from_webcam_faster.py", line 31, in <module>
small_frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25)
cv2.error: /home/deeplearning/opencv-3.2.0/modules/imgproc/src/imgwarp.cpp:3492: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize`
Process finished with exit code 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with facerec_from_webcam_faster.py, especially line 31 where cv2.resize(frame, ...) raises the assertion, and run the webcam example in the reported Ubuntu and Python environment. Inspect the frame source and the OpenCV/dlib setup before the resize call. Done means identifying and documenting the cause of the empty frame or providing a verified fix for this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- opencv, python
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100