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

The pypi packages does not install face detection xml files #37

Closed
ianlewis opened this Issue Apr 29, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@ianlewis

ianlewis commented Apr 29, 2011

The face detection supplementary XML files are not installed when installing using pip or easy_install. Thumbor crashes saying OpenCV returned a null value.


Traceback (most recent call last):
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/tornado/web.py", line 861, in _execute
getattr(self, self.request.method.lower())(_args, *_kwargs)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/tornado/web.py", line 941, in wrapper
return method(self, _args, *_kwargs)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/handlers.py", line 268, in get
return self.execute_image_operations(opt, image)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/handlers.py", line 74, in execute_image_operations
opt['smart'], image)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/handlers.py", line 143, in get_image
self._fetch(image, extension, callback)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/handlers.py", line 171, in _fetch
callback(buffer)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/handlers.py", line 131, in callback
self.detectors[0](index=0, detectors=self.detectors).detect(context)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/detectors/face_detector/init.py", line 26, in init
self.load_cascade_file(file, options.FACE_DETECTOR_CASCADE_FILE)
File "/path/to/thumbor/virtualenv/lib/python2.6/site-packages/thumbor/detectors/init.py", line 43, in load_cascade_file
setattr(self.class, 'cascade', cv.Load(cascade_file))
TypeError: OpenCV returned NULL

@heynemann

This comment has been minimized.

Show comment
Hide comment
@heynemann

heynemann Apr 29, 2011

Member

Thanks for the heads-up Ian... Will fix now.

Member

heynemann commented Apr 29, 2011

Thanks for the heads-up Ian... Will fix now.

@ianlewis

This comment has been minimized.

Show comment
Hide comment
@ianlewis

ianlewis Apr 29, 2011

The problem was actually that the wiki configuration example contains the setting:

FACE_DETECTOR_CASCADE_FILE = 'haarcascade_frontface_alt.xml'

but it should be:

FACE_DETECTOR_CASCADE_FILE = 'haarcascade_frontalface_alt.xml'

The xml files were installed properly. Sorry for jumping the gun a bit.

ianlewis commented Apr 29, 2011

The problem was actually that the wiki configuration example contains the setting:

FACE_DETECTOR_CASCADE_FILE = 'haarcascade_frontface_alt.xml'

but it should be:

FACE_DETECTOR_CASCADE_FILE = 'haarcascade_frontalface_alt.xml'

The xml files were installed properly. Sorry for jumping the gun a bit.

@heynemann

This comment has been minimized.

Show comment
Hide comment
@heynemann

heynemann Apr 29, 2011

Member

No problem at al! Thanks for letting us know! Please post here again if you find anything odd or if you need help with something.

I'm closing this issue as it's no longer an issue.

Cheers,

Member

heynemann commented Apr 29, 2011

No problem at al! Thanks for letting us know! Please post here again if you find anything odd or if you need help with something.

I'm closing this issue as it's no longer an issue.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment