Bug 389031

Summary: Scanning collection for faces causes produces lots of OpenCV errors
Product: [Applications] digikam Reporter: Nick Anderson <nick+kde-bug-tracker>
Component: Faces-RecognitionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 5.8.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.0.0
Sentry Crash Report:

Description Nick Anderson 2018-01-15 22:44:42 UTC
Using the 5.8.0 appimage on Ubuntu 17.10 I get lots of OpenCV Errors when scanning my collection for faces.

#+BEGIN_EXAMPLE
OpenCV Error: Bad argument (This LBPH model is not computed yet. Did you call the train method?) in predict, file /b/dktemp/digikam-v5.8.0/core/libs/facesengine/recognition-opencv-lbph/facerec_borrowed.cpp, line 383
digikam.facesengine: cv::Exception: /b/dktemp/digikam-v5.8.0/core/libs/facesengine/recognition-opencv-lbph/facerec_borrowed.cpp:383: error: (-5) This LBPH model is not computed yet. Did you call the train method? in function predict
#+END_EXAMPLE
Comment 1 Maik Qualmann 2018-01-16 19:18:22 UTC
This error message is "normal". You have not assigned a name to any found face yet. The database for the histograms is still empty. Do not use for face search "find faces and recognize", only "find faces".

Maik
Comment 2 Nick Anderson 2018-01-16 20:52:36 UTC
(In reply to Maik Qualmann from comment #1)
> This error message is "normal". You have not assigned a name to any found
> face yet. The database for the histograms is still empty. Do not use for
> face search "find faces and recognize", only "find faces".
> 
> Maik

OK, thanks
Comment 3 caulier.gilles 2019-12-23 14:50:20 UTC
Not reproducible with 7.0.0