digiKam
Loading...
Searching...
No Matches
Digikam::DNNModelInfoContainer Class Reference

#include <dnnmodelinfocontainer.h>

Public Member Functions

 DNNModelInfoContainer ()=default
 
 DNNModelInfoContainer (const DNNModelInfoContainer &)
 
 DNNModelInfoContainer (const QString &_displayName, const QString &_fileName, const DNNModelUsageList &_usage, const QVersionNumber &_minVersion, const QString &_downloadPath, const QString &_sha256, const qint64 &_fileSize, int _defaultThreshold, int _minUsableThreshold, int _maxUsableThreshold, DNNLoaderType _loaderType, const QString &_classList, const QString &_configName, const cv::Scalar &_meanValToSubtract, int _imageSize)
 
DNNModelInfoContaineroperator= (const DNNModelInfoContainer &)
 
DNNModelInfoContaineroperator= (DNNModelInfoContainer &&)
 
bool operator== (const DNNModelInfoContainer &t) const
 
 ~DNNModelInfoContainer ()=default
 

Public Attributes

QString classList
 Name of model containing list of class names for classification.
 
QString configName
 
int defaultThreshold = 0
 Threshold used for models that aren't configured by the UI.
 
QString displayName
 Name used for display in UI (QComboBox).
 
QString downloadPath
 Used by the downloader for the download path.
 
QString fileName
 Used by the downloader and model loader.
 
qint64 fileSize = 0
 Used by the downloader to verify size.
 
int imageSize = 0
 Max dimension of a side of an image.
 
DNNLoaderType loaderType = DNNLoaderNet
 Model loder type custom (YuNet/SFace), Caffe, Darknet, Torch, Tensorflow.
 
int maxUsableThreshold = 0
 Used to convert UI 1-10 slider to float for processing.
 
cv::Scalar meanValToSubtract = cv::Scalar(0.0, 0.0, 0.0)
 
int minUsableThreshold = 0
 Used to convert UI 1-10 slider to float for processing.
 
QVersionNumber minVersion
 Minimum version of digiKam needed to use this model.
 
QString sha256
 SHA265 hash of the file for download.
 
DNNModelUsageList usage
 How the model can be used. | for more than one use. face_detection, face_recognition, weight, object_detection, etc...
 

Constructor & Destructor Documentation

◆ DNNModelInfoContainer() [1/3]

Digikam::DNNModelInfoContainer::DNNModelInfoContainer ( )
default

◆ DNNModelInfoContainer() [2/3]

Digikam::DNNModelInfoContainer::DNNModelInfoContainer ( const DNNModelInfoContainer o)

◆ DNNModelInfoContainer() [3/3]

Digikam::DNNModelInfoContainer::DNNModelInfoContainer ( const QString &  _displayName,
const QString &  _fileName,
const DNNModelUsageList _usage,
const QVersionNumber &  _minVersion,
const QString &  _downloadPath,
const QString &  _sha256,
const qint64 &  _fileSize,
int  _defaultThreshold,
int  _minUsableThreshold,
int  _maxUsableThreshold,
DNNLoaderType  _loaderType,
const QString &  _classList,
const QString &  _configName,
const cv::Scalar &  _meanValToSubtract,
int  _imageSize 
)
explicit

◆ ~DNNModelInfoContainer()

Digikam::DNNModelInfoContainer::~DNNModelInfoContainer ( )
default

References Digikam::operator==().

Member Function Documentation

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ operator==()

bool Digikam::DNNModelInfoContainer::operator== ( const DNNModelInfoContainer t) const

Member Data Documentation

◆ classList

QString Digikam::DNNModelInfoContainer::classList

Name of model containing list of class names for classification.

Referenced by Digikam::DNNBaseDetectorModel::loadDetectionClasses(), operator=(), operator=(), and operator==().

◆ configName

QString Digikam::DNNModelInfoContainer::configName

◆ defaultThreshold

int Digikam::DNNModelInfoContainer::defaultThreshold = 0

Threshold used for models that aren't configured by the UI.

Referenced by Digikam::DNNModelBase::getThreshold(), operator=(), operator=(), and operator==().

◆ displayName

QString Digikam::DNNModelInfoContainer::displayName

◆ downloadPath

QString Digikam::DNNModelInfoContainer::downloadPath

Used by the downloader for the download path.

Referenced by Digikam::DNNModelBase::getDownloadInformation(), operator=(), operator=(), and operator==().

◆ fileName

QString Digikam::DNNModelInfoContainer::fileName

◆ fileSize

qint64 Digikam::DNNModelInfoContainer::fileSize = 0

◆ imageSize

int Digikam::DNNModelInfoContainer::imageSize = 0

Max dimension of a side of an image.

Referenced by operator=(), operator=(), and operator==().

◆ loaderType

DNNLoaderType Digikam::DNNModelInfoContainer::loaderType = DNNLoaderNet

Model loder type custom (YuNet/SFace), Caffe, Darknet, Torch, Tensorflow.

Referenced by operator=(), operator=(), and operator==().

◆ maxUsableThreshold

int Digikam::DNNModelInfoContainer::maxUsableThreshold = 0

Used to convert UI 1-10 slider to float for processing.

Referenced by Digikam::DNNModelBase::getThreshold(), operator=(), operator=(), and operator==().

◆ meanValToSubtract

cv::Scalar Digikam::DNNModelInfoContainer::meanValToSubtract = cv::Scalar(0.0, 0.0, 0.0)

Referenced by operator=(), and operator=().

◆ minUsableThreshold

int Digikam::DNNModelInfoContainer::minUsableThreshold = 0

Used to convert UI 1-10 slider to float for processing.

Referenced by Digikam::DNNModelBase::getThreshold(), operator=(), operator=(), and operator==().

◆ minVersion

QVersionNumber Digikam::DNNModelInfoContainer::minVersion

Minimum version of digiKam needed to use this model.

Referenced by operator=(), operator=(), and operator==().

◆ sha256

QString Digikam::DNNModelInfoContainer::sha256

SHA265 hash of the file for download.

Referenced by Digikam::DNNModelBase::getDownloadInformation(), operator=(), operator=(), and operator==().

◆ usage

DNNModelUsageList Digikam::DNNModelInfoContainer::usage

How the model can be used. | for more than one use. face_detection, face_recognition, weight, object_detection, etc...

Referenced by Digikam::DNNModelBase::getThreshold(), operator=(), operator=(), and operator==().


The documentation for this class was generated from the following files: