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

GitHub | matthewcodes | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 562#272491348

    GitHub | 2 months ago | matthewcodes
    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
  2. 0

    Error with train

    Google Groups | 3 years ago | Juan Camilo Solano Estrada
    java.lang.RuntimeException: /home/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/linux-x86_64/opencv-2.4.9/modules/core/src/matrix.cpp:805: error: (-211) Bad new number of rows in function reshape
  3. 0

    How do I create an OpenCV Mat of shape [3,2] for an affine transform?

    Stack Overflow | 4 months ago | crockpotveggies
    java.lang.RuntimeException: /Users/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/macosx-x86_64/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp:6360: error: (-215) src.checkVector(2, CV_32F) == 3 && dst.checkVector(2, CV_32F) == 3 in function getAffineTransform
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Face Recognition Fisher Faces gives assertion error when multiple images of 1 person are added.

    Google Groups | 1 year ago | Marco Beerepoot
    java.lang.RuntimeException: src\matrix.cpp:464: error: (-215) 0 <= _colRange.start && _colRange.start <= _colRange.end && _colRange.end <= m.cols in function cv::Mat::Mat
  6. 0

    OpenCV: convert array of integer to Mat

    Stack Overflow | 4 months ago | devrandom
    java.lang.RuntimeException: vector<T> too long

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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

      at org.bytedeco.javacpp.opencv_face$FaceRecognizer.train()
    2. JavaCPP
      opencv_face$FaceRecognizer.train
      1. org.bytedeco.javacpp.opencv_face$FaceRecognizer.train(Native Method)
      1 frame