Face effect class.
More...
Face effect class.
- Warning
- In the NvsSmartCutParser class, all public APIs can be used not only in the UI thread, but also across threads! ! !
◆ cancelAllTasks()
void com.meicam.sdk.NvsSmartCutParser.cancelAllTasks |
( |
| ) |
|
|
inline |
◆ cancelTask()
void com.meicam.sdk.NvsSmartCutParser.cancelTask |
( |
long |
taskId | ) |
|
|
inline |
cancel media detect task.
- Parameters
-
◆ close()
static void com.meicam.sdk.NvsSmartCutParser.close |
( |
| ) |
|
|
inlinestatic |
Destroys the smart cut object instance. note: it can be created again after destruction.
- See also
- init
-
getInstance
◆ detectMediaFiles()
boolean com.meicam.sdk.NvsSmartCutParser.detectMediaFiles |
( |
ArrayList< NvsDetectData > |
dataList | ) |
|
|
inline |
detect media files
- Parameters
-
- Returns
- Returns a boolean value. true means successful and false means failure
◆ 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() [1/2]
Initializes an instance of smart cut object.
- Parameters
-
scheme. | |
sceneModelPath | scene model. |
placeModelPath | place model. |
- Returns
- Returns the smart cut instance object.
- See also
- getInstance
-
close
◆ init() [2/2]
Initializes smart cut instance.
- Parameters
-
scheme. | |
sceneModelPath | scene model. |
placeModelPath | place model. |
flags | Flags, 0 if no special requirement, please refer to (SMART_CUT_FLAG). |
- Returns
- Returns a smart cut instance object.
- See also
- getInstance
-
close
◆ initHumanDetection()
static boolean com.meicam.sdk.NvsSmartCutParser.initHumanDetection |
( |
Context |
ctx, |
|
|
String |
modelFilePath, |
|
|
String |
licenseFilePath, |
|
|
int |
features |
|
) |
| |
|
inlinestatic |
Initializes human detection.
- Parameters
-
ctx | The context object from android. |
modelFilePath | The path of face modle file. |
licenseFilePath | The path of authorization file. |
features | Human detection features field,0 if no special requirement. |
- Returns
- Returns a value representing if it succeeded.
- Since
- 2.15.0
◆ notifyDetectError()
void com.meicam.sdk.NvsSmartCutParser.notifyDetectError |
( |
final int |
errorType | ) |
|
|
inlineprotected |
◆ notifyDetectFinished()
void com.meicam.sdk.NvsSmartCutParser.notifyDetectFinished |
( |
final String |
mediaPath, |
|
|
final String |
scdPath |
|
) |
| |
|
inlineprotected |
◆ notifyDetectProgress()
void com.meicam.sdk.NvsSmartCutParser.notifyDetectProgress |
( |
final String |
mediaPath, |
|
|
final float |
progress |
|
) |
| |
|
inlineprotected |
◆ notifyDetectStarted()
void com.meicam.sdk.NvsSmartCutParser.notifyDetectStarted |
( |
final String |
mediaPath, |
|
|
final long |
taskId |
|
) |
| |
|
inlineprotected |
◆ QuerySupportedSchemes()
static ArrayList<NvsInferenceScheme> com.meicam.sdk.NvsSmartCutParser.QuerySupportedSchemes |
( |
| ) |
|
|
inlinestatic |
◆ resume()
void com.meicam.sdk.NvsSmartCutParser.resume |
( |
| ) |
|
|
inline |
◆ setMaxThreadCount()
boolean com.meicam.sdk.NvsSmartCutParser.setMaxThreadCount |
( |
int |
threadCount | ) |
|
|
inline |
set max detect thread count
- Parameters
-
- Returns
- Returns a boolean value. true means successful and false means failure
◆ setSmartCutParserCallback() [1/2]
void com.meicam.sdk.NvsSmartCutParser.setSmartCutParserCallback |
( |
SmartCutParserCallback |
callback, |
|
|
Handler |
handler |
|
) |
| |
|
inline |
Sets callback interface for smart cut.
- Parameters
-
cb | Callback interface for smart cut. |
handler | Callback handler. |
◆ setSmartCutParserCallback() [2/2]
Sets callback interface for smart cut.
- Parameters
-
cb | Callback interface for smart cut. |
◆ suspend()
void com.meicam.sdk.NvsSmartCutParser.suspend |
( |
| ) |
|
|
inline |
suspend all detect tasks.
◆ SMART_CUT_FLAG_NONE
final int com.meicam.sdk.NvsSmartCutParser.SMART_CUT_FLAG_NONE = 0 |
|
static |
The documentation for this class was generated from the following file: