MeiCam SDK For Android
1.0.0
|
Special effect context. More...
Classes | |
class | SdkVersion |
Meishe SDK version information. More... | |
class | VerifyLicenseResult |
Public Member Functions | |
boolean | isSdkAuthorised () |
Check whether sdk is authorized. More... | |
SdkVersion | getSdkVersion () |
Gets Meishe SDK version information. More... | |
NvsAssetPackageManager | getAssetPackageManager () |
Gets the resource package manager. More... | |
List< String > | getAllBuiltinVideoFxNames () |
Gets all built-in video effects names. More... | |
NvsVideoEffect | createVideoEffect (String fxIds, NvsRational aspectRatio) |
Creates video effect object. More... | |
NvsEffectRenderCore | createEffectRenderCore () |
Creates effect rendering object. More... | |
Static Public Member Functions | |
static void | setDebugLevel (int debugLevel) |
static void | setSaveDebugMessagesToFile (boolean saveDebugMessagesToFile) |
static Context | getContext () |
static ClassLoader | getClassLoader () |
static NvsEffectSdkContext | init (Context ctx, String sdkLicenseFilePath, int flags) |
Initializes a singleton instance of the effect context. More... | |
static NvsEffectSdkContext | init (Activity mainActivity, String sdkLicenseFilePath, int flags) |
Initializes a singleton instance of the effect context. More... | |
static NvsEffectSdkContext | init (Activity mainActivity, String sdkLicenseFilePath) |
Initialize a singleton instance of the effect context. More... | |
static void | close () |
Destroies the effect context instance. Note: users can create and get it again after it is destroyed. More... | |
static NvsEffectSdkContext | getInstance () |
Gets a singleton instance of the effect context (users must initialize it before it can be used). More... | |
static int | hasARModule () |
Checks if the current SDK contains an AR module. More... | |
static boolean | initHumanDetection (Context cxt, String modelFilePath, String licenseFilePath, int features) |
Initializes the human body detection mechanism. More... | |
static void | closeHumanDetection () |
Closes the human detection mechanism. More... | |
static boolean | setupHumanDetectionData (int dataType, String dataFilePath) |
Initializes human detection related data packages. More... | |
Static Public Attributes | |
Human detection characteristics | |
static final int | HUMAN_DETECTION_FEATURE_FACE_LANDMARK = 1 |
Face landmark. More... | |
static final int | HUMAN_DETECTION_FEATURE_FACE_ACTION = 2 |
Human detection package type | |
static final int | HUMAN_DETECTION_DATA_TYPE_FAKE_FACE = 0 |
Special effect context.
The effect context class is the entry to the entire SDK framework. During development, NvsEffectSdkContext provides the "sharedInstance" interface to create the unique streaming context instance. With this instance object, users can handle one or more effects. After use, the object instance of the effect context should be destroyed.Whening adding asset package (capture effect package, scene resource package, etc.), users should firstly install it and get the package Id of the effect after installation. The package ID serves as the handle of effect. However built-in effects can be directly used by their names.
Paths for resource, authorization, etc. in sdk interfaces must be full path.
|
inlinestatic |
Destroies the effect context instance. Note: users can create and get it again after it is destroyed.
|
inlinestatic |
Closes the human detection mechanism.
|
inline |
Creates effect rendering object.
|
inline |
Creates video effect object.
fxIds | Video effects id. For built-in video effects, it is the name of the effect. If it is a resource package effect, it is the resource package id. |
aspectRatio | The aspect ratio of special effect. |
|
inline |
Gets all built-in video effects names.
|
inline |
Gets the resource package manager.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
Gets Meishe SDK version information.
|
inlinestatic |
Checks if the current SDK contains an AR module.
|
inlinestatic |
Initializes a singleton instance of the effect context.
ctx | Android Context object. |
sdkLicenseFilePath | Specifies the path of the SDK license file. |
flags | Flag field. If there is no special requirement, please fill in 0. |
|
inlinestatic |
Initializes a singleton instance of the effect context.
mainActivity | Main Android Activity object. |
sdkLicenseFilePath | Specified the path of the SDK license file. |
flags | Flag field. If there is no special requirement, please fill in 0. |
|
inlinestatic |
Initialize a singleton instance of the effect context.
mainActivity | Main Android Activity object |
sdkLicenseFilePath | The specified path of the SDK license file |
|
inlinestatic |
Initializes the human body detection mechanism.
cxt | The context object from android. |
modelFilePath | The path of model file. |
licenseFilePath | The path of license file. |
features | Human detection feature flag field. Please refer to Streaming Media Context Flags. |
|
inline |
Check whether sdk is authorized.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Initializes human detection related data packages.
dataType | Human detection package type. Please refer to Human Detection Packet Type. |
dataFilePath | The path of the data file. |
|
static |
Fake face package type
|
static |
Face action
|
static |
Face landmark.