https://bugs.kde.org/show_bug.cgi?id=516875

--- Comment #8 from [email protected] ---
>From the dialog, the test is started in this slot when the button is pressed :

https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/setup/misc/ocvocldnntestdlg.cpp?ref_type=heads#L139

It run this method in a separated thread :

https://invent.kde.org/graphics/digikam/-/blob/master/core/utilities/setup/misc/ocvocldnntestdlg.cpp?ref_type=heads#L247

These methods are used from OpenCV API to check OpenCL and GPU availability:

cv::ocl::haveOpenCL() :
https://docs.opencv.org/4.x/dc/d83/group__core__opencl.html#gaf8716694664cb127e7928c335b97d217
cv::ocl::Device::getDefault() :
https://docs.opencv.org/4.x/d7/d9f/classcv_1_1ocl_1_1Device.html#ae539c774ca7c37a8fde069e96aa11139

If it's pass, a test image is loaded (DNNTestImage) and a simple face detection
is done to see if it works using YuNet DNN model. In a second stage the faces
are extracted and aligned using SFace DNN model.

Files relevant :

YuNet :
https://files.kde.org/digikam/facesengine/yunet/face_detection_yunet_2023mar.onnx
Test Image :
https://www-ftp.lip6.fr/pub/X11/kde-applicationdata/digikam/facesengine/dnntestimage.jpeg
SFace :
https://files.kde.org/digikam/facesengine/dnnface/face_recognition_sface_2021dec.onnx

Best regards

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to