mandyGao / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Problem on train method in face recognition #499

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Train method always return error
2.
3.

What is the expected output? What do you see instead?
Successful training is the expected output.
but i get this below 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/openc
v-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)

What version of the product are you using? On what operating system?

Windows
Please provide any additional information below.
The Expected pixel and given pixel are always different,why?
how it will determine the expected pixel.

Original issue reported on code.google.com by kavi...@amazinggadgetdeals.com on 20 Feb 2015 at 10:51

GoogleCodeExporter commented 8 years ago
This site is no longer maintained, and nobody comes to check messages here. 
Please ask your questions on GitHub or on the mailing list, thank you.

Original comment by samuel.a...@gmail.com on 3 Mar 2015 at 12:43