Face Detection training image problem (Bug #3300)


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


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

0%

Category:java bindings
Target version:2.4.10
Affected version:2.4.0 - 2.4.6 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 0d196529
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3300 from rohitrawat:bug_3787_docs_NAryMatIterator

History

Updated by Anna Kogan over 11 years ago

Hello Naval,

Thank you for reporting the problem! If you could work on a solution for the issue, a "contribution":How_to_contribute would be very appreciated!

  • Priority changed from Blocker to Low
  • Description changed from The FaceRecognizer class of java have a function named predict which is used ... to The FaceRecognizer class of java have a function named predict which is used ... More

Updated by Anna Kogan over 11 years ago

  • Status changed from New to Open

Updated by Alexander Smorkalov over 11 years ago

@Andrey Pavlenko, please have a look.

  • Affected version changed from 2.4.6 (latest release) to 2.4.0 - 2.4.6

Updated by Alexander Smorkalov over 11 years ago

  • Target version changed from 2.4.7 to 2.4.8

Updated by Alexander Smorkalov about 11 years ago

  • Target version changed from 2.4.8 to 2.4.9

Updated by Alexander Smorkalov almost 11 years ago

  • Target version changed from 2.4.9 to 2.4.10

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4633

Also available in: Atom PDF