| 1 |
Download and create information for the DNN models used with OpenCV has been |
| 2 |
moved from code to dnnmodels.conf. The file uses standard .ini formatting. |
| 3 |
|
| 4 |
Explanation of the file format: |
| 5 |
[ModelName] |
| 6 |
DisplayName=Display Name of the model to be used in the UI |
| 7 |
ToolTip=ToolTip for the model to be used in the UI |
| 8 |
Usage=valid options are face_detection, face_recognition, aesthetics, object_detection, and weights. Can contain multiple values comma or pipe separated |
| 9 |
Application=Application needing this file. Options are digikam and showfoto. Can contain multiple values comma or pipe separated |
| 10 |
MinVersion=minimum digikam version needed to use the model |
| 11 |
FileName=filename of the model. Used for downloading the model and loading the model from disk |
| 12 |
DownloadPath=path on the KDE download server |
| 13 |
SHA256=SHA256 hash for download verification |
| 14 |
FileSize=file size in bytes |
| 15 |
DefaultThreshold=scale 0-100. Default threshold to use when not set in the UI |
| 16 |
MinUsableThreshold=scale 0-100. Settings below this value return too many false positives |
| 17 |
MaxUsableThreshold=scale 0-100. Settings above this value exclude too many false negatives |
| 18 |
LoaderType=DNN model type. Valid options are net (for onnx, pb, tf), config, YuNet, and SFace |
| 19 |
Preprocessor=image preprocessor to use. Blank if not used. Values are Blob and Flat |
| 20 |
Classifier=classifier to use on model result set |
| 21 |
ClassList=Class list text file. This file is given to the classifier to map class IDs to text labels |
| 22 |
ConfigName=name of the weights file if needed. Blank if no weights file needed. Must match another [ModelName] section |
| 23 |
MeanValueToSubtract=Scalar value for tuning the model. 0,0,0 if not used |
| 24 |
ImageSize=recommended image size to pass to the model for processing. 0 if not used |
| 25 |
|
| 26 |
|
| 27 |
YOLOv3 example: |
| 28 |
|
| 29 |
[YOLOv3] |
| 30 |
DisplayName=YOLOv3 |
| 31 |
Usage=face_detection |
| 32 |
Application=digikam|showfoto |
| 33 |
MinVersion=8.5.0 |
| 34 |
FileName=yolov3-face.cfg |
| 35 |
DownloadPath=facesengine/dnnface/ |
| 36 |
SHA256=f6563bd6923fd6500d2c2d6025f32ebdba916a85e5c9798351d916909f62aaf5 |
| 37 |
FileSize=8334 |
| 38 |
DefaultThreshold=70 |
| 39 |
MinUsableThreshold=20 |
| 40 |
MaxUsableThreshold=80 |
| 41 |
LoaderType=net |
| 42 |
Preprocessor=Blob |
| 43 |
Classifier= |
| 44 |
ClassList= |
| 45 |
ConfigName=YOLOv3_Weights |
| 46 |
MeanValueToSubtract=0,0,0 |
| 47 |
ImageSize=412 |
| 48 |
|
| 49 |
[YOLOv3_Weights] |
| 50 |
DisplayName=YOLOv3 Weights |
| 51 |
Usage=face_detection |
| 52 |
Application=digikam |
| 53 |
MinVersion=8.5.0 |
| 54 |
FileName=yolov3-wider_16000.weights |
| 55 |
DownloadPath=facesengine/dnnface/ |
| 56 |
SHA256=a88f3b3882e3cce1e553a81d42beef6202cb9afc3db88e7944f9ffbcc369e7df |
| 57 |
FileSize=246305388 |
| 58 |
DefaultThreshold=0 |
| 59 |
MinUsableThreshold=0 |
| 60 |
MaxUsableThreshold=0 |
| 61 |
LoaderType=Config |
| 62 |
Preprocessor= |
| 63 |
Classifier= |
| 64 |
ClassList= |
| 65 |
ConfigName= |
| 66 |
MeanValueToSubtract=0,0,0 |
| 67 |
ImageSize=0 |