Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Face detection doesn't work with GIF's, and has error #19

Open
asgh opened this issue Dec 24, 2014 · 1 comment
Open

Face detection doesn't work with GIF's, and has error #19

asgh opened this issue Dec 24, 2014 · 1 comment

Comments

@asgh
Copy link

asgh commented Dec 24, 2014

First face detection doesn't work with GIF, because the underlying CV library doesn't support it. See: http://opencv.jp/opencv-2svn_org/c/highgui_reading_and_writing_images_and_video.html

So bug 1 would be to convert the image from GIF if needed.

But 2 is that if you do this you get an error from the getFaceList() function because getFaceListFromClassifier() returns false instead of an array - and it's not expecting that.

So aside from supporting GIF's, presumably getFaceListFromClassifier() should check for false and return an empty array.

@asgh
Copy link
Author

asgh commented Dec 24, 2014

And if I modify the function to return a blank array, it still doesn't work with GIF as the result of cropping is a corrupted GIF file. Maybe this should really be two bugs.

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

No branches or pull requests

1 participant