美摄SDK For iOS  3.13.5
构造函数 | 类方法 | 属性 | 所有成员列表
NvsSmartCutParser类 参考

智能剪辑类 更多...

#import <NvsSmartCutParser.h>

类 NvsSmartCutParser 继承关系图:

构造函数

(Boolean) - setMaxThreadCount:
 设置最大检测线程数目 更多...
 
(Boolean) - detectMediaFiles:
 检测资源 更多...
 
(void) - cancelTask:
 取消检测任务 更多...
 
(void) - cancelAllTasks
 取消所有检测任务 更多...
 
(void) - suspend
 挂起检测任务 更多...
 
(void) - resume
 恢复所有检测任务 更多...
 

类方法

(NSArray *) + querySupportedSchemes
 获取支持的推理方案 更多...
 
(NvsSmartCutParser *) + init:sceneModelPath:placeModelPath:
 对智能剪辑类的单例实例进行初始化 更多...
 
(NvsSmartCutParser *) + init:sceneModelPath:placeModelPath:flags:
 对智能剪辑类的单例实例进行初始化 更多...
 
(void) + close
 销毁智能剪辑类实例。注意: 销毁之后可以再次创建及获取 更多...
 
(BOOL) + initHumanDetection:licenseFilePath:features:
 初始化人体检测机制 更多...
 
(NvsSmartCutParser *) + getInstance
 获取智能剪辑类的单例实例(必须进行初始化后才能使用) 更多...
 

属性

id< NvsSmartCutParserDelegatedelegate
 

详细描述

智能剪辑类

警告
NvsSmartCutParser类中,所有public API不仅可以在UI线程使用,也可以跨线程使用!!!

函数文档

◆ cancelAllTasks

- (void) cancelAllTasks

取消所有检测任务

◆ cancelTask:

- (void) cancelTask: (int64_t)  taskId

取消检测任务

参数
taskId任务序号

◆ close

+ (void) close

销毁智能剪辑类实例。注意: 销毁之后可以再次创建及获取

参见
init
+ getInstance

◆ detectMediaFiles:

- (Boolean) detectMediaFiles: (NSArray *)  dataArray

检测资源

参数
dataArray资源列表
返回
返回布尔值。值为true则成功,false则失败。

◆ getInstance

+ (NvsSmartCutParser *) getInstance

获取智能剪辑类的单例实例(必须进行初始化后才能使用)

返回
返回智能剪辑类的单例实例对象
参见
init
+ close

◆ init:sceneModelPath:placeModelPath:

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

对智能剪辑类的单例实例进行初始化

参数
scheme方案.
sceneModelPath景别模型文件.
placeModelPath场景模型文件.
返回
返回智能剪辑类的对象实例
参见
+ close

◆ init:sceneModelPath:placeModelPath:flags:

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

对智能剪辑类的单例实例进行初始化

参数
scheme方案.
sceneModelPath景别模型文件.
placeModelPath场景模型文件.
flags标志字段,如果无特殊需求请填写0。
返回
返回智能剪辑类的对象实例
参见
+ close

◆ initHumanDetection:licenseFilePath:features:

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

初始化人体检测机制

参数
modelFilePath人脸模型文件路径
licenseFilePath授权文件路径
features人体检测特征标志字段.
自从
2.15.0

◆ querySupportedSchemes

+ (NSArray *) querySupportedSchemes

获取支持的推理方案

返回
返回支持的方案列表
参见
+ getInstance
+ close

◆ resume

- (void) resume

恢复所有检测任务

◆ setMaxThreadCount:

- (Boolean) setMaxThreadCount: (int)  threadCount

设置最大检测线程数目

参数
threadCount线程数目
返回
返回布尔值。值为true则成功,false则失败。

◆ suspend

- (void) suspend

挂起检测任务

属性说明

◆ delegate

- (id<NvsSmartCutParserDelegate>) delegate
readwriteatomicweak

该类的文档由以下文件生成: