DeepSight SDK  3.0.0
DeepSight SDK - crowd face analysis
ds::help::Fps Class Reference

Helper class to keep track of analyzed frames per second. More...

Public Member Functions

float operator() ()
 Returns the current fps. More...
 

Detailed Description

Helper class to keep track of analyzed frames per second.

Sample Usage:

ds::DeepSight ds{ ... };
while( true )
{
std::vector<ds::Person> faces = ds.analyze( frame );
std::cout << "Frames per second: " << fps() << std::endl;
}

Member Function Documentation

◆ operator()()

ds::help::Fps::operator() ( )

Returns the current fps.

This function calculates the time elapsed between consecutive ds::help::Fps::operator()() calls and returns this as a measure of frames per second.

ds::help::Fps
Helper class to keep track of analyzed frames per second.
Definition: ds_help.h:24
ds::DeepSight
DeepSight SDK engine class.
Definition: ds_deepsight.h:28