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

Typedefs

typedef void * ClsTestHandle
 Classification file handler. More...
 
typedef void * ClsTestResult
 Classification inspection results handler. More...
 

Functions

ClsTestHandle SR_CreateClsTestHandle (const char *filePath)
 Create a ClsTestHandle via multi byte char path. More...
 
ClsTestHandle SR_CreateClsTestHandleByWideCharPath (const wchar_t *filePath)
 Create a ClsTestHandle via wide char path. More...
 
ClsTestResult SR_MakeClsTestResult ()
 Construct a ClsTestResult. More...
 

Detailed Description

Construct ClsTestHandle or ClsTestResult.

Typedef Documentation

◆ ClsTestHandle

typedef void* ClsTestHandle

Classification file handler.

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

See also
SR_CreateClsTestHandleByWideCharPath, SR_DestroyClsTestHandle

◆ ClsTestResult

typedef void* ClsTestResult

Classification inspection results handler.

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

See also
SR_MakeClsTestResult, SR_DeleteClsTestResult

Function Documentation

◆ SR_CreateClsTestHandle()

ClsTestHandle SR_CreateClsTestHandle ( const char *  filePath)

Create a ClsTestHandle via multi byte char path.

Parameters
filePathfile path of trained model
Returns
classification file handler. Return nullptr if filePath is invalid.
See also
SR_CreateClsTestHandleByWideCharPath
Warning
ClsTestHandle should be destroyed by SR_DestroyClsTestHandle after inspection finished.

◆ SR_CreateClsTestHandleByWideCharPath()

ClsTestHandle SR_CreateClsTestHandleByWideCharPath ( const wchar_t *  filePath)

Create a ClsTestHandle via wide char path.

Parameters
filePathfile path of trained model
Returns
classification file handler. Return nullptr if filePath is invalid.
See also
SR_CreateClsTestHandle
Warning
ClsTestHandle should be destroyed by SR_DestroyClsTestHandle after inspection finished.
Examples
ExampleClsErrorHandling.cpp, ExampleClsRuntime.cpp, ExampleClsRuntimeBatchInspection.cpp, ExampleClsRuntimeSimple.cpp, and ExampleSeg+ClsRuntime.cpp.

◆ SR_MakeClsTestResult()

ClsTestResult SR_MakeClsTestResult ( )