SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
Detection's handle construction

Typedefs

typedef void * DetTestHandle
 Detection file handler. More...
 
typedef void * DetTestResult
 Detection inspection results handler. More...
 

Functions

DetTestHandle SR_CreateDetTestHandle (const char *filePath)
 Create a DetTestHandle via multi byte char path. More...
 
DetTestHandle SR_CreateDetTestHandleByWideCharPath (const wchar_t *filePath)
 Create a DetTestHandle via wide char path. More...
 
DetTestResult SR_MakeDetTestResult ()
 Construct a DetTestResult. More...
 

Detailed Description

Construct DetTestHandle or DetTestResult.

Typedef Documentation

◆ DetTestHandle

typedef void* DetTestHandle

Detection file handler.

DetTestHandle is a handle of detection file. One DetTestHandle object manages one file and contains the information for configuring the inspection.

See also
SR_CreateDetTestHandleByWideCharPath, SR_DestroyDetTestHandle

◆ DetTestResult

typedef void* DetTestResult

Detection inspection results handler.

DetTestResult is a handle of detection's inspection results. Users can get the inspection results after each inspection through a created DetTestResult.

See also
SR_MakeDetTestResult, SR_DeleteDetTestResult

Function Documentation

◆ SR_CreateDetTestHandle()

DetTestHandle SR_CreateDetTestHandle ( const char *  filePath)

Create a DetTestHandle via multi byte char path.

Parameters
filePathfile path of trained model
Returns
detection file handler. Return nullptr if filePath is invalid.
See also
SR_CreateDetTestHandleByWideCharPath
Warning
DetTestHandle should be destroyed by SR_DestroyDetTestHandle after inspection finished.

◆ SR_CreateDetTestHandleByWideCharPath()

DetTestHandle SR_CreateDetTestHandleByWideCharPath ( const wchar_t *  filePath)

Create a DetTestHandle via wide char path.

Parameters
filePathfile path of trained model
Returns
detection file handler. Return nullptr if filePath is invalid.
See also
SR_CreateDetTestHandle
Warning
DetTestHandle should be destroyed by SR_DestroyDetTestHandle after inspection finished.
Examples
ExampleDetErrorHandling.cpp, ExampleDetRuntime.cpp, and ExampleDetRuntimeSimple.cpp.

◆ SR_MakeDetTestResult()

DetTestResult SR_MakeDetTestResult ( )

Construct a DetTestResult.

Warning
DetTestResult should be destroyed by SR_DeleteDetTestResult after inspection finished.
Examples
ExampleDetRuntime.cpp, and ExampleDetRuntimeSimple.cpp.