|
DFX Extraction library v4.15.8
enabling applications to perform DFX blood flow analysis
|
DFXFactory is the primary entry point for the collector and is used create a collector. More...
#include "dfx/DFXFactory.h"
Public Member Functions | |
| virtual | ~DFXFactory () |
| DFXFactory destructor. | |
| virtual std::string | getVersion () const =0 |
| The version ID of this DFX Extraction library. | |
| virtual std::string | getSdkID () const =0 |
| The ID of this DFX Extraction library. | |
| virtual bool | setMode (const std::string &mode)=0 |
| Set the operating mode which will be used when creating a new collector. | |
| virtual std::string | getMode () const =0 |
| Returns the current operating mode when creating collectors. | |
| virtual std::string | getLastErrorMessage ()=0 |
| If there was an error getLastErrorMessage may contain more information about why the erorr occurred. | |
| virtual void | setProperty (const std::string &key, const std::string &value)=0 |
| Specifies a configurable property key/value pair to configure the DFX Extraction library. | |
| virtual std::string | getProperty (const std::string &key)=0 |
| Returns a property value for a key. | |
| virtual void | removeProperty (const std::string &key)=0 |
| Removes a property from the factory if it exists. | |
| virtual std::vector< std::string > | getValidProperties () const =0 |
| Obtain a list of valid property keys which can be configured. | |
| virtual bool | initializeStudy (const std::vector< unsigned char > &data)=0 |
| Initializes the factory to create collectors for a study with a memory based data definition. | |
| virtual bool | addToStudy (const std::vector< unsigned char > &data)=0 |
| Adds to the study definition when a definition is comprised of multiple parts with an additional memory based definition. | |
| virtual bool | initializeStudyFromFile (const std::string &pathToFile)=0 |
| Initializes the factory to create collectors for a study with a file based data definition. | |
| virtual bool | addToStudyFromFile (const std::string &pathToFile)=0 |
| Adds to the study definition when a definition is comprised of multiple parts with an additional file based definition. | |
| virtual std::shared_ptr< dfx::Collector > | createCollector ()=0 |
| Creates a Collector to process video frames and build a request payload. | |
DFXFactory is the primary entry point for the collector and is used create a collector.
Applications are able to analyze video stream and summarize relevent portions of the stream which can be sent using the DFX API to the DFX Server for additional signal processing and model prediction.
Typical usage of the DFX API and DFX Extraction library involves only a few application level calls.
While the DFX Extraction library does not perform server calls, it does construct the payloads which a client platform will send to the server. The DFX Extraction library also expects to be initialized with the server response to properly initialize the engine.
|
pure virtual |
Adds to the study definition when a definition is comprised of multiple parts with an additional memory based definition.
If this is the first call, it will initialize the study with the definition otherwise it will be added to the existing data definitions.
| data | to add to the study definition |
|
pure virtual |
Adds to the study definition when a definition is comprised of multiple parts with an additional file based definition.
If this is the first call, it will initialize the study with the definition otherwise it will be added to the existing data definitions.
| pathToFile | to add to the study definition |
|
pure virtual |
|
pure virtual |
If there was an error getLastErrorMessage may contain more information about why the erorr occurred.
|
pure virtual |
Returns the current operating mode when creating collectors.
|
pure virtual |
Returns a property value for a key.
| key | to obtain the property value for. |
|
pure virtual |
The ID of this DFX Extraction library.
When requesting a study file from the DFX server it requires the ID which is returned by this method.
|
pure virtual |
Obtain a list of valid property keys which can be configured.
|
pure virtual |
The version ID of this DFX Extraction library.
|
pure virtual |
Initializes the factory to create collectors for a study with a memory based data definition.
An instance of a DFXFactory will only create collectors for the most recently configured study. Previously initialized study definitions are replaced with the new data if true is returned.
| data | from the server which identifies the study characteristics this DFXFactory will use. |
|
pure virtual |
Initializes the factory to create collectors for a study with a file based data definition.
An instance of a DFXFactory will only create collectors for the most recently configured study. Previously initialized study definitions are replaced with the new data if true is returned.
| pathToFile | from the server which identifies the study characteristics this DFXFactory will use. |
|
pure virtual |
Removes a property from the factory if it exists.
| key | of property to remove if it exists, ignored if it does not exist. |
|
pure virtual |
Set the operating mode which will be used when creating a new collector.
Identifies the collector as being a "streaming" or a "discrete" collector. By default the collector is considered "discrete".
| mode | the string representing the operating mode. |
|
pure virtual |
Specifies a configurable property key/value pair to configure the DFX Extraction library.
| key | of property to configure. |
| value | of property to configure. |