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

Typedefs

typedef void * SegTestHandle
 Segmentation file handler. More...
 
typedef void * SegTestResult
 Segmentation inspection results handler. More...
 

Functions

SegTestHandle SR_CreateSegTestHandle (const char *filePath)
 Create a SegTestHandle via multi byte char path. More...
 
SegTestHandle SR_CreateSegTestHandleByWideCharPath (const wchar_t *filePath)
 Create a SegTestHandle via wide char path. More...
 
SegTestResult SR_MakeSegTestResult ()
 Construct a SegTestResult. More...
 

Detailed Description

Construct SegTestHandle or SegTestResult.

Typedef Documentation

◆ SegTestHandle

typedef void* SegTestHandle

Segmentation file handler.

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

See also
SR_CreateSegTestHandleByWideCharPath, SR_DestroySegTestHandle

◆ SegTestResult

typedef void* SegTestResult

Segmentation inspection results handler.

SegTestResult is a handle of segmentation's inspection results. Users can get the inspection results(SR_SegmentedObject etc) after each inspection through a created SegTestResult.

See also
SR_MakeSegTestResult, SR_DeleteSegTestResult

Function Documentation

◆ SR_CreateSegTestHandle()

SegTestHandle SR_CreateSegTestHandle ( const char *  filePath)

Create a SegTestHandle via multi byte char path.

Parameters
filePathfile path of trained model
Returns
segmentation file handler. Return nullptr if filePath is invalid.
See also
SR_CreateSegTestHandleByWideCharPath
Warning
SegTestHandle should be destroyed by SR_DestroySegTestHandle after inspection finished.

◆ SR_CreateSegTestHandleByWideCharPath()

SegTestHandle SR_CreateSegTestHandleByWideCharPath ( const wchar_t *  filePath)

Create a SegTestHandle via wide char path.

Parameters
filePathfile path of trained model
Returns
segmentation file handler. Return nullptr if filePath is invalid.
See also
SR_CreateSegTestHandle
Warning
SegTestHandle should be destroyed by SR_DestroySegTestHandle after inspection finished.
Examples
ExampleSeg+ClsRuntime.cpp, ExampleSegErrorHandling.cpp, ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, ExampleSegRuntimeMultiPage.cpp, ExampleSegRuntimeSimple.cpp, and ExampleSuperResolution+SegRuntime.cpp.

◆ SR_MakeSegTestResult()