You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/ksdfg/stuff/code/neko-chan-telebot/venv/bin/deeppyer", line 8, in <module>
sys.exit(main())
File "/home/ksdfg/stuff/code/neko-chan-telebot/venv/lib/python3.8/site-packages/deeppyer/cli.py", line 22, in main
img = loop.run_until_complete(deepfry(img, flares=args.flares))
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/ksdfg/stuff/code/neko-chan-telebot/venv/lib/python3.8/site-packages/deeppyer/__init__.py", line 54, in deepfry
faces = face_cascade.detectMultiScale(
cv2.error: OpenCV(4.4.0) /tmp/pip-req-build-6179nsls/opencv/modules/objdetect/src/cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'detectMultiScale'
It works if I set flares=False or do not give -f in CLI, but I do want the flares in the result.....
The text was updated successfully, but these errors were encountered:
You can fix this by manually downloading
haarcascade_eye.xml and haarcascade_frontalface_default.xml from here. Then put the XML files in the same directory as your code
You can fix this by manually downloading
haarcascade_eye.xml and haarcascade_frontalface_default.xml from here. Then put the XML files in the same directory as your code
I tried that already, tried giving full path to the XML files as well.
Edit 1
I also tried adding them to the cwd of the code which was calling the function, the error went away but still no flares........
Edit 2
I tried with some more images, it gave this as the output for one of them
3.8.5
1.0.1
4.4.0.42
using the function
or the CLI
gives the error
It works if I set
flares=False
or do not give-f
in CLI, but I do want the flares in the result.....The text was updated successfully, but these errors were encountered: