-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: no suitable method found for predict(Mat) #642
Comments
It looks like that method was renamed to "predict_label" for some reason: |
thank you i used predict_label and work successfully but i want Get the prediction with confidence. |
i want use this method to get confidence FaceRecognizer.predict(Mat,IntPointer,DoublePointer) if can. or advise me if you have another way to get confidence |
Yes, we can use that method. What is the issue? |
I used it in this way
and the build.gradle is
and when i build it by gradle i have the this error
How can solve this error ? |
As per the commit above, I've fixed the call in the samples. Just do it the same way. Thanks for reporting! |
Hi,
i make project face recogntion and build it by gradle but when i build i have this error
home/project/hipi/examples/jcvhd/src/main/java/org/hipi/examples/HelloWorld.java:132: error: no suitable method found for predict(Mat)
int predictedLabel = faceRecognizer.predict(testImage);
^
method FaceRecognizer.predict(Mat,IntPointer,DoublePointer) is not applicable
(actual and formal argument lists differ in length)
method FaceRecognizer.predict(Mat,IntBuffer,DoubleBuffer) is not applicable
(actual and formal argument lists differ in length)
method FaceRecognizer.predict(UMat,int[],double[]) is not applicable
(actual and formal argument lists differ in length)
method FaceRecognizer.predict(UMat,IntPointer,DoublePointer) is not applicable
(actual and formal argument lists differ in length)
1 error
:examples:jcvhd:compileJava FAILED
FAILURE: Build failed with an exception.
Execution failed for task ':examples:jcvhd:compileJava'.
can any one help me please.
The text was updated successfully, but these errors were encountered: