| Summary: | OpenCV 4.12 exception and face classifier not working | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | kevinpr |
| Component: | Faces-Recognition | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin, post |
| Priority: | NOR | ||
| Version First Reported In: | 8.7.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 8.8.0 | |
| Sentry Crash Report: | |||
|
Description
kevinpr
2025-07-16 09:25:46 UTC
*** This bug has been marked as a duplicate of bug 506663 *** I cannot reproduce the exception on 3 Windows machines, nor on my development version of OpenSUSE Tumbleweed. Please test whether the problem can be reproduced with our AppImage. Maik (In reply to Maik Qualmann from comment #2) > I cannot reproduce the exception on 3 Windows machines, nor on my > development version of OpenSUSE Tumbleweed. > > Please test whether the problem can be reproduced with our AppImage. > > Maik Hi With the AppImage is working fine. Seems AppImage is using libOpenCV 4.11.0 also (As information shows it) The exception must occur here, I think. In principle, the exception could only occur if there were no column in the training data array. Let's see... https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/facesengine/recognition/faceclassifier.cpp?ref_type=heads#L322 Maik Maik, I plan to update OpenCV to 4.12 in all Bundles. I do it soon or i wait a little bit ? Gilles Hi Gilles, I think we're still waiting for 4.12. I just noticed that Tumbleweed is also still on 4.11. It might be an API change in the cv::ml::TrainData class or a bug. I'll keep researching it. Maik Could be an explanation... https://github.com/opencv/opencv/wiki/OpenCV-Change-Logs#updated-dnn-deep-learning-inference-module Maik Git commit afe5772bf982e95bdf312dd627031bf838564249 by Maik Qualmann. Committed on 16/07/2025 at 16:29. Pushed by mqualmann into branch 'master'. try to fix exception with OpenCV-4.12 Related: bug 506663 M +1 -1 core/libs/facesengine/recognition/faceclassifier.cpp https://invent.kde.org/graphics/digikam/-/commit/afe5772bf982e95bdf312dd627031bf838564249 kevinpr@jkanetwork.com The digiKam 8.8.0 pre-relelase AppImage have been rebuilt using last Qt 6.9.1, OpenCV 4.12, and KDE framework 6.16. https://files.kde.org/digikam/digiKam-8.8.0-20250719T191430-Qt6-x86-64.appimage.mirrorlist Can you reproduce the problem with this version? Best regards Gilles Caulier I also experienced the bug on Arch Linux and have rebuilt the package locally with the patch by Maik applied. The issue is resolved by that, face recognition works again and there is also no more error on startup. As that patch is most likely included in the latest AppImage I would assume that this also works, but have not tested it. Thanks for the feedback on Arch Linux, I also confirm that AppImage works with OpenCV-4.12. Maik (In reply to caulier.gilles from comment #9) > kevinpr@jkanetwork.com > > The digiKam 8.8.0 pre-relelase AppImage have been rebuilt using last Qt > 6.9.1, > OpenCV 4.12, and KDE framework 6.16. > > https://files.kde.org/digikam/digiKam-8.8.0-20250719T191430-Qt6-x86-64. > appimage.mirrorlist > > Can you reproduce the problem with this version? > > Best regards > > Gilles Caulier Works for me also :) Thanks to all The patch has been applied to the Arch Linux Package, so it is also fixed downstream. Thanks a lot to all involved. |