Face Detection training image problem (Bug #3299)
Description
The FaceRecognizer class of java have a function named predict which is used to compare the facial image and a set of training images and then it predicts which face is this.
The bug is that the predict methods throws an exception if the training image's width is not a multiple of 8, I tried to get prediction work with training images of 125X150 resolution.
Predict method works if I use LBPH implementation of Facerecognizer, but if i use Fisherman or Eigenface it gave me this exception:-
OpenCV Error: Image step is wrong (The matrix is not continuous, thus its number of rows can not be changed) in unknown function, file ..\..\..\src\opencv\modules\core\src\matrix.cpp, line 802
Exception in thread "pool-1-thread-4" java.lang.RuntimeException: ..\..\..\src\opencv\modules\core\src\matrix.cpp:802: error: (-13) The matrix is not continuous, thus its number of rows can not be changed.
However, as a suggestion of [[http://code.google.com/p/javacv/issues/detail?id=368]] when I changed the resolution of training images to 128X150. it worked without any exception.
Associated revisions
Merge pull request #3299 from felixendres:orb_keypoint_detector_threshold
History
Updated by Anna Kogan over 11 years ago
Cancelled as duplicates #3300
- Status changed from New to Cancelled