crop
crop copied to clipboard
Face detection doesn't work with GIF's, and has error
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.
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.