java.lang.RuntimeException: /Users/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/macosx-x86_64/opencv_contrib-3.1.0/modules/face/src/lbph_faces.cpp:359: error: (-5) The number of samples (src) must equal the number of labels (labels). Was len(samples)=891, len(labels)=0. in function train

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by matthewcodes
, 11 months ago
/Users/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/macosx-x86_64/opencv_contrib-3.1.0/modules/face/src/lbph_faces.cpp:359: error: (-5) The number of samples (src) must equal the number of labels (labels). Was len(samples)=891, len(labels)=0. in function train
via Google Groups by Marco Beerepoot, 1 year ago
src\matrix.cpp:464: error: (-215) 0 <= _colRange.start && _colRange.start <= _colRange.end && _colRange.end <= m.cols in function cv::Mat::Mat
via GitHub by lquinn2015
, 6 months ago
/projects/bytedeco/javacpp-presets/opencv/cppbuild/linux-x86_64/opencv-3.1.0/modules/core/src/lda.cpp:1016: error: (-5) At least two classes are needed to perform a LDA. Reason: Only one class was given! in function lda
java.lang.RuntimeException: /Users/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/macosx-x86_64/opencv_contrib-3.1.0/modules/face/src/lbph_faces.cpp:359: error: (-5) The number of samples (src) must equal the number of labels (labels). Was len(samples)=891, len(labels)=0. in function train

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.