bool contains(const QString &name)

Check if a property exists in the global metadata.

  • function definition:

    bool contains(const QString &name);
    
  • parameters:

    Parameter Type Description
    name const QString & Metadata key. It must be queryable using QObject::property.
  • output: (bool) Returns true if the provided key is a global property.

  • see: setProperty
  • example:
    Globals->contains("path"); // returns true
    Globals->contains("key"); // returns false
    

void setProperty(const QString &key, const QString &value)

Set a global property.

  • function definition:

    void setProperty(const QString &key, const QString &value)
    
  • parameters:

    Parameter Type Description
    key const QString & Metadata key
    value const QString & Value to be added to the Metadata
  • output: (void)

  • see: contains
  • example:
    Globals->contains("key"); // returns false
    Globals->setProperty("key", "value");
    Globals->contains("key"); // returns true
    

void printStatus()

Prints the current progress statistics to stdout.

  • function definition:

void printStatus();

  • parameters: NONE
  • output: (void)
  • see: progress
  • example:
    Globals->printStatus(); // returns 00.00%  ELAPSED=00:00:00  REMAINING=99:99:99  COUNT=0
    

int timeRemaining() const

Get the time remaining in seconds of a call to Train, Enroll or Compare.

  • function defintion:

    int timeRemaining() const;
    
  • parameters: NONE

  • output: (int) Returns the estimated time remaining in the currently running process. If not process is running returns -1.

float progress()

Get the completion percentage of a call to Train, Enroll or Compare.

  • function definition:

    float progress() const;
    
  • parameters: NONE

  • output: (float) Returns the fraction of the currently running job that has been completed.