Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature detection error in matrix.cpp #64

Open
BertrandBordage opened this issue May 21, 2018 · 1 comment
Open

Feature detection error in matrix.cpp #64

BertrandBordage opened this issue May 21, 2018 · 1 comment

Comments

@BertrandBordage
Copy link
Member

While uploading multiple images in Wagtail with feature detection enabled, one of my clients faced this error on each image:

File "/…/python3.5/site-packages/willow/plugins/opencv.py" in detect_features
  79.         points = cv2.goodFeaturesToTrack(self.image, 20, 0.04, 1.0)

Exception Type: error at /admin/images/multiple/add/
Exception Value: /io/opencv/modules/core/src/matrix.cpp:436: error: (-215) u != 0 in function create

The images themselves are pretty standard, JPGs of less than 1 MB each. They were generated from Adobe Illustrator vector drawings where most of the image is a white background.

@kaedroho
Copy link
Contributor

I think the Python bindings for OpenCV should be handling errors like this so this is probably an OpenCV bug.

As a workaround, this library might work better than OpenCV (and it's easy to install): https://github.com/torchbox/rustface-py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants