Go to the documentation of this file.
15 #import <Foundation/Foundation.h>
75 - (void)didDetectStarted:(NSString*)mediaPath taskId:(int64_t)taskId;
87 - (void)didDetectFinished:(NSString*)mediaPath scdPath:(NSString*)scdPath;
97 - (void)didDetectError:(
int)errorType;
109 - (void)didDetectProgress:(NSString*)mediaPath progress:(
float)progress;
124 @property (atomic, weak) id<NvsSmartCutParserDelegate>
delegate;
200 + (BOOL)initHumanDetection:(NSString *)modelFilePath
201 licenseFilePath:(NSString *)licenseFilePath
202 features:(
int)features;
226 - (Boolean)setMaxThreadCount:(
int)threadCount;
238 - (Boolean)detectMediaFiles:(NSArray *)dataArray;
248 - (void)cancelTask:(int64_t)taskId;
302 @property (nonatomic) NSString* mediaPath;
303 @property (nonatomic)
int frameSpace;
304 @property (nonatomic)
NvsSize detectSize;
@ NvsDeviceTypeFlag_Cpu
Definition: NvsSmartCutParser.h:57
@ NvsFrameworkTypeFlag_MobileGeneral
Definition: NvsSmartCutParser.h:41
@ NvsFrameworkTypeFlag_General
Definition: NvsSmartCutParser.h:40
void resume()
resume all detect tasks.
id< NvsSmartCutParserDelegate > delegate
Definition: NvsSmartCutParser.h:124
Smart cut parser class.
Definition: NvsSmartCutParser.h:123
NvsDeviceTypeFlag
Definition: NvsSmartCutParser.h:55
@ NvsFrameworkTypeFlag_Nnapi
Definition: NvsSmartCutParser.h:45
NvsSmartCutParserFlag
Definition: NvsSmartCutParser.h:27
NvsFrameworkTypeFlag
Definition: NvsSmartCutParser.h:38
@ NvsDeviceTypeFlag_Unknown
Definition: NvsSmartCutParser.h:56
@ NvsFrameworkTypeFlag_Unknown
Definition: NvsSmartCutParser.h:39
@ NvsDeviceTypeFlag_Gpu
Definition: NvsSmartCutParser.h:58
void suspend()
suspend all detect tasks.
detect data class.
Definition: NvsAIParser.h:59
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
@ NvsFrameworkTypeFlag_Qualcomm
Definition: NvsSmartCutParser.h:43
inference scheme
Definition: NvsSmartCutParser.h:287
@ NvsDeviceTypeFlag_Npu
Definition: NvsSmartCutParser.h:59
@ NvsFrameworkTypeFlag_Mediatek
Definition: NvsSmartCutParser.h:44
void close()
Destroys the smart cut object instance. note: it can be created again after destruction.
@ NvsFrameworkTypeFlag_Huawei
Definition: NvsSmartCutParser.h:42
NSArray * querySupportedSchemes()
query support schemes.
Size.
Definition: NvsCommonDef.h:265
Definition: NvsSmartCutParser.h:62
void cancelAllTasks()
cancel all detect tasks.
NvsSmartCutParser * getInstance()
Gets the instance of smart cut object (only can use this after initialization)
@ NvsSmartCutParserFlag_None
Definition: NvsSmartCutParser.h:28