|
美摄SDK For Android
3.14.4
|
智能检测类 更多...
类 | |
| class | NvsDetectData |
| 智能检测数据类 更多... | |
| class | NvsInferenceScheme |
| interface | SmartCutParserCallback |
| 智能检测回调接口 更多... | |
Public 成员函数 | |
| boolean | setMaxThreadCount (int threadCount) |
| 设置最大检测线程数目 更多... | |
| boolean | detectMediaFiles (ArrayList< NvsDetectData > dataList) |
| 检测资源 更多... | |
| void | setSmartCutParserCallback (SmartCutParserCallback cb) |
| 设置智能检测回调接口 更多... | |
| void | setSmartCutParserCallback (SmartCutParserCallback callback, Handler handler) |
| 设置智能检测回调接口 更多... | |
| void | cancelTask (long taskId) |
| 取消检测任务 更多... | |
| void | cancelAllTasks () |
| 取消所有检测任务 更多... | |
| void | suspend () |
| 挂起检测任务 更多... | |
| void | resume () |
| 恢复所有检测任务 更多... | |
静态 Public 成员函数 | |
| static ArrayList< NvsInferenceScheme > | QuerySupportedSchemes () |
| 获取支持的推理方案 更多... | |
| static NvsSmartCutParser | init (NvsInferenceScheme scheme, String sceneModelPath, String placeModelPath, int flags) |
| 对智能检测类的单例实例进行初始化 更多... | |
| static NvsSmartCutParser | init (NvsInferenceScheme scheme, String sceneModelPath, String placeModelPath) |
| 对智能检测类的单例实例进行初始化 更多... | |
| static void | close () |
| 销毁智能检测类实例。注意: 销毁之后可以再次创建及获取 更多... | |
| static boolean | initHumanDetection (Context ctx, String modelFilePath, String licenseFilePath, int features) |
| 初始化人体检测机制 更多... | |
| static NvsSmartCutParser | getInstance () |
| 获取智能检测类的单例实例(必须进行初始化后才能使用) 更多... | |
静态 Public 属性 | |
智能检测标志 | |
| static final int | SMART_CUT_FLAG_NONE = 0 |
Protected 成员函数 | |
| void | notifyDetectStarted (final String mediaPath, final long taskId) |
| void | notifyDetectFinished (final String mediaPath, final String scdPath) |
| void | notifyDetectError (final int errorType) |
| void | notifyDetectProgress (final String mediaPath, final float progress) |
智能检测类
|
inline |
取消所有检测任务
|
inline |
取消检测任务
| taskId | 任务序号 |
|
inlinestatic |
销毁智能检测类实例。注意: 销毁之后可以再次创建及获取
|
inline |
检测资源
| dataList | 资源队列 |
|
inlinestatic |
|
inlinestatic |
对智能检测类的单例实例进行初始化
| scheme | 方案. |
| sceneModelPath | 景别模型文件. |
| placeModelPath | 场景模型文件. |
|
inlinestatic |
对智能检测类的单例实例进行初始化
| scheme | 方案. |
| sceneModelPath | 景别模型文件. |
| placeModelPath | 场景模型文件. |
| flags | 标志字段,如果无特殊需求请填写0。请参见智能检测标志 |
|
inlinestatic |
初始化人体检测机制
| ctx | 安卓Context对象 |
| modelFilePath | 人脸模型文件路径 |
| licenseFilePath | 授权文件路径 |
| features | 人体检测特征标志字段。如无特殊需求写0) |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinestatic |
|
inline |
恢复所有检测任务
|
inline |
设置最大检测线程数目
| threadCount | 线程数目 |
|
inline |
设置智能检测回调接口
| cb | 智能检测回调接口 |
| handler | 回调线程 |
|
inline |
设置智能检测回调接口
| cb | 智能检测回调接口 |
|
inline |
挂起检测任务
|
static |
1.8.17