facerecognizer

39 views
Skip to first unread message

Chu Boonfu

unread,
Mar 29, 2016, 3:47:40 AM3/29/16
to javacv
Hi, i am testing a OpenCV face Recognizer example from here: https://github.com/bytedeco/javacv/blob/master/samples/OpenCVFaceRecognizer.java

but i get this error

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
    at OpenCVFaceRecognizer.main(OpenCVFaceRecognizer.java:36)
C:\Users\boonfu\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)

Do i have to do something to run this?

Refer

unread,
Mar 31, 2016, 6:43:47 PM3/31/16
to javacv
Have you changed trainingDir and testImage values? If you didn't, Try to allocating training folder dir where are the Images to train, And allocating testImage absolute path of the test Image that will be use for recognition.

Samuel Audet

unread,
Apr 2, 2016, 10:55:54 AM4/2/16
to jav...@googlegroups.com
You have to provide the training directory and one test image file.

Samuel
Reply all
Reply to author
Forward
0 new messages