Face Detection training image problem (Bug #3299)


Added by Naval Kishore Gandhi over 11 years ago. Updated over 11 years ago.


Status:Cancelled Start date:2013-10-03
Priority:Blocker Due date:
Assignee:Naval Kishore Gandhi % Done:

0%

Category:java bindings
Target version:2.4.7
Affected version:2.4.6 (latest release) Operating System:Windows
Difficulty:Medium HW Platform:x64
Pull request:

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

Revision 9575a82a
Added by Vadim Pisarevsky over 10 years ago

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

Also available in: Atom PDF