Facial recognition isn't working
Gilles Caulier
caulier.gilles at gmail.com
Sun Apr 6 16:21:27 BST 2025
Le dim. 6 avr. 2025 à 14:11, Michael Miller <michael_miller at msn.com> a écrit :
>
> Hi Robert,
> Unfortunately, that didn’t work quite right. Can you please re-run the steps, but this time please type this line by hand
> export QT_LOGGING_RULES=“digikam"=true”
>
> The quotes got translated to something “prettier”, but aren’t recognized by digiKam. You can see it in the line
>
> qt.core.logging: Ignoring malformed logging rule: '“digikam*=true”'
>
>
> It didn’t give me all the debug information I needed.
>
> Also, these lines are concerning:
>
> QObject::connect: Cannot queue arguments of type 'MLPipelinePackageNotify::Ptr'
> (Make sure 'MLPipelinePackageNotify::Ptr' is registered using qRegisterMetaType().)
> digikam.metaengine: ExifTool is not available to load metadata...
>
>
> The first two lines don’t appear in my MacOS or Linux runs. Gilles or Maik, do you have any ideas?
Sure. Easy. For the custom container to be used in signal and slot
mechanism you need to register the type in Qt before use. Look this
exemple :
1/ declare in container header like this :
https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/database/item/containers/iteminfo.h?ref_type=heads#L693
Don't forget to use the right include from Qt : QMetaType
https://doc.qt.io/qt-6/qmetatype.html#Q_DECLARE_METATYPE
2/ Register the type in the Qt map:
https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/database/item/containers/iteminfocache.cpp?ref_type=heads#L33
https://doc.qt.io/qt-6/qmetatype.html#qRegisterMetaType
Voilà
Gilles
More information about the Digikam-users
mailing list