digiKam
Loading...
Searching...
No Matches
Digikam::DNNModelBase Class Referenceabstract

#include <dnnmodelbase.h>

+ Inheritance diagram for Digikam::DNNModelBase:

Public Member Functions

 DNNModelBase (const DNNModelInfoContainer &_info)
 
DownloadInfo getDownloadInformation () const
 
const QString getModelPath () const
 
float getThreshold (int uiThreshold=DNN_MODEL_THRESHOLD_NOT_SET) const
 
virtual ~DNNModelBase ()=default
 

Public Attributes

const DNNModelInfoContainer info
 information about the model.
 
bool modelLoaded = false
 check if the model has been loaded.
 
QMutex mutex
 mutex to sigle-thread model during critical processing functions.
 

Protected Member Functions

bool checkFilename () const
 
const QPair< int, int > getBackendAndTarget () const
 

Protected Attributes

QMutex loaderMutex
 

Constructor & Destructor Documentation

◆ DNNModelBase()

Digikam::DNNModelBase::DNNModelBase ( const DNNModelInfoContainer _info)
explicit

◆ ~DNNModelBase()

virtual Digikam::DNNModelBase::~DNNModelBase ( )
virtualdefault

Member Function Documentation

◆ checkFilename()

bool Digikam::DNNModelBase::checkFilename ( ) const
protected

◆ getBackendAndTarget()

const QPair< int, int > Digikam::DNNModelBase::getBackendAndTarget ( ) const
protected

◆ getDownloadInformation()

◆ getModelPath()

const QString Digikam::DNNModelBase::getModelPath ( ) const

Return path to the model, or null string if path cannot be found.

References Digikam::DNNModelInfoContainer::fileName, and info.

Referenced by checkFilename(), and Digikam::DNNBaseDetectorModel::loadDetectionClasses().

◆ getThreshold()

float Digikam::DNNModelBase::getThreshold ( int  uiThreshold = DNN_MODEL_THRESHOLD_NOT_SET) const

Member Data Documentation

◆ info

◆ loaderMutex

QMutex Digikam::DNNModelBase::loaderMutex
protected

◆ modelLoaded

◆ mutex

QMutex Digikam::DNNModelBase::mutex

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