MeiCam SDK For iOS  3.10.1
Instance Methods | Class Methods | Properties | List of all members
NvsSmartCutParser Class Reference

Smart cut parser class. More...

#import <NvsSmartCutParser.h>

Inheritance diagram for NvsSmartCutParser:

Instance Methods

(Boolean) - setMaxThreadCount:
 set max detect thread count More...
 
(Boolean) - detectMediaFiles:
 detect media files More...
 
(void) - cancelTask:
 cancel media detect task. More...
 
(void) - cancelAllTasks
 cancel all detect tasks. More...
 
(void) - suspend
 suspend all detect tasks. More...
 
(void) - resume
 resume all detect tasks. More...
 

Class Methods

(NSArray *) + querySupportedSchemes
 query support schemes. More...
 
(NvsSmartCutParser *) + init:sceneModelPath:placeModelPath:
 Initializes smart cut instance. More...
 
(NvsSmartCutParser *) + init:sceneModelPath:placeModelPath:flags:
 Initializes smart cut instance. More...
 
(void) + close
 Destroys the smart cut object instance. note: it can be created again after destruction. More...
 
(BOOL) + initHumanDetection:licenseFilePath:features:
 Initializes the human body detection mechanism. More...
 
(NvsSmartCutParser *) + getInstance
 Gets the instance of smart cut object (only can use this after initialization) More...
 

Properties

id< NvsSmartCutParserDelegatedelegate
 

Detailed Description

Smart cut parser class.

Warning
In the NvsSmartCutParser class, all public APIs can be used not only in the UI thread, but also across threads! ! !

Method Documentation

◆ cancelAllTasks

- (void) cancelAllTasks

cancel all detect tasks.

◆ cancelTask:

- (void) cancelTask: (int64_t)  taskId

cancel media detect task.

Parameters
taskIdtask ID.

◆ close

+ (void) close

Destroys the smart cut object instance. note: it can be created again after destruction.

See also
init
+ getInstance

◆ detectMediaFiles:

- (Boolean) detectMediaFiles: (NSArray *)  dataArray

detect media files

Parameters
dataArraydata array
Returns
Returns a boolean value. true means successful and false means failure

◆ getInstance

+ (NvsSmartCutParser *) getInstance

Gets the instance of smart cut object (only can use this after initialization)

Returns
Returns the smart cut object instance.
See also
init
+ close

◆ init:sceneModelPath:placeModelPath:

+ (NvsSmartCutParser *) init: (NvsInferenceScheme *)  scheme
sceneModelPath: (NSString *)  sceneModelPath
placeModelPath: (NSString *)  placeModelPath 

Initializes smart cut instance.

Parameters
scheme.
sceneModelPathscene model.
placeModelPathplace model.
Returns
Returns a smart cut instance object.
See also
+ close

◆ init:sceneModelPath:placeModelPath:flags:

+ (NvsSmartCutParser *) init: (NvsInferenceScheme *)  scheme
sceneModelPath: (NSString *)  sceneModelPath
placeModelPath: (NSString *)  placeModelPath
flags: (int)  flags 

Initializes smart cut instance.

Parameters
scheme.
sceneModelPathscene model.
placeModelPathplace model.
flagsFlags, 0 if no special requirement.
Returns
Returns a smart cut instance object.
Returns an object instance of the smart cut parser.
See also
+ close

◆ initHumanDetection:licenseFilePath:features:

+ (BOOL) initHumanDetection: (NSString *)  modelFilePath
licenseFilePath: (NSString *)  licenseFilePath
features: (int)  features 

Initializes the human body detection mechanism.

Parameters
modelFilePathPath of the model file
licenseFilePathPath of the license file
featureshuman detection flag field..
Since
2.15.0

◆ querySupportedSchemes

+ (NSArray *) querySupportedSchemes

query support schemes.

Returns
Returns sheme list.
See also
+ getInstance
+ close

◆ resume

- (void) resume

resume all detect tasks.

◆ setMaxThreadCount:

- (Boolean) setMaxThreadCount: (int)  threadCount

set max detect thread count

Parameters
threadCountthread count
Returns
Returns a boolean value. true means successful and false means failure

◆ suspend

- (void) suspend

suspend all detect tasks.

Property Documentation

◆ delegate

- (id<NvsSmartCutParserDelegate>) delegate
readwriteatomicweak

The documentation for this class was generated from the following file: