Problem in train(method) using javacv in android

251 views
Skip to first unread message

kav...@amazinggadgetdeals.com

unread,
Feb 20, 2015, 6:06:12 AM2/20/15
to jav...@googlegroups.com
The Train method in Face Recognition class always gives pixel error.

OpenCV Error: Unsupported format or combination of formats (In the Fisherfaces method all input samples (training images) must be of equal size! Expected 1920000 pixels, but was 310249 pixels.) in virtual void cv::Fisherfaces::train(cv::InputArrayOfArrays, cv::InputArray), file /home/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/android-arm/opencv-2.4.10/modules/contrib/src/facerec.cpp, line 564


 W/System.err﹕ java.lang.RuntimeException: /home/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/android-arm/opencv-2.4.10/modules/contrib/src/facerec.cpp:564: error: (-210) In the Fisherfaces method all input samples (training images) must be of equal size! Expected 1920000 pixels, but was 310249 pixels. in function virtual void cv::Fisherfaces::train(cv::InputArrayOfArrays, cv::InputArray)


how it calculates the expected pixel size.
how to resolve this error.

Samuel Audet

unread,
Feb 27, 2015, 8:47:16 PM2/27/15
to jav...@googlegroups.com
On 02/20/2015 08:06 PM, kav...@amazinggadgetdeals.com wrote:
> how it calculates the expected pixel size.
> how to resolve this error.

My recommendation would be to follow the instructions in the tutorial here:
http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html
If you get these kinds of errors even after following these
instructions, then please let me know! Thanks

Samuel

Reply all
Reply to author
Forward
0 new messages