MeiCam SDK For Web
3.12.1
|
Effect context Effect context is the entry to effect SDK framework, nveGetEffectContextInstance() used to get the unique effect context instance. More...
Public Member Functions | |
constructor () | |
verifySdkLicenseFile (licenseFilePath) | |
Verifies the SDK license file. More... | |
async | verifySdkLicenseFileUrl (licenseFileUrl) |
Verifies the SDK license file url. More... | |
setMaxQueuedRenderTask (maxQueuedRenderTask) | |
Set maximum of queued render task. More... | |
getMaxQueuedRenderTask () | |
Get maximum of queued render task. More... | |
createVideoEffect (fxName, aspectRatio, workingInRealtimeMode=true) | |
Create video effect object. More... | |
createVideoTransition (fxName, aspectRatio) | |
Create video transition object. More... | |
createAnimatedSticker (inPoint, duration, isPanoramic, packageId, aspectRatio) | |
Create animated sticker object. More... | |
createCompoundCaption (inPoint, duration, packageId, aspectRatio) | |
Create compound caption object. More... | |
createCaption (text, inPoint, duration, isPanoramic, packageId, aspectRatio) | |
Create caption object. More... | |
createModularCaption (text, inPoint, duration, aspectRatio) | |
Create modular caption object. More... | |
renderEffects (effectInstanceArray, inputImageData, timestampMs, flags=0, hostBufferInfoExtArray=[], renderRect={}) | |
Rendering special array effects. More... | |
renderEffectsWithMultiInputs (effectInstanceArray, inputImageDataArray, timestampMs, flags=0, hostBufferInfoExtArray=[], renderRect={}) | |
Rendering special array effects. More... | |
renderEffect (effectInstance, inputImageData, timestampMs, flags=0, hostBufferInfoExtArray=[]) | |
Rendering effect. More... | |
renderEffectWithMultiInputs (effectInstance, inputImageDataArray, timestampMs, flags=0, hostBufferInfoExtArray=[]) | |
Rendering effect. More... | |
initHumanDetection (modelFilePath, licenseFilePath, features) | |
Initializes human detection. Only once needed. More... | |
initHumanDetectionExt (modelFilePath, licenseFilePath, features) | |
Initializes human detection extention. Need use initHumanDetection first. More... | |
setupHumanDetectionData (dataType, dataFilePath) | |
Setup human detection data. More... | |
closeHumanDetection () | |
Close the human detection mechanism. More... | |
getAssetPackageManager () | |
Get asset package manager. More... | |
inferenceTest (imageFilePath, modelFilePath, forwardType, threadNum, loopCount, flags) | |
Effect context Effect context is the entry to effect SDK framework, nveGetEffectContextInstance() used to get the unique effect context instance.
|
inline |
Close the human detection mechanism.
|
inline |
@constructor
|
inline |
Create animated sticker object.
{Number} | inPoint In point |
{Number} | duration Duration |
{Boolean} | isPanoramic Panoramic or not |
{String} | packageId Animated sticker package id |
{String} | aspectRatio Aspect ratio |
|
inline |
Create caption object.
{String} | text Caption text |
{Number} | inPoint In point |
{Number} | duration Duration |
{Boolean} | isPanoramic Panoramic or not |
{String} | packageId Caption style package id |
{String} | aspectRatio Aspect ratio |
|
inline |
Create compound caption object.
{Number} | inPoint In point |
{Number} | duration Duration |
{String} | packageId Compound caption package id |
{String} | aspectRatio Aspect ratio |
|
inline |
Create modular caption object.
{String} | text Caption text |
{Number} | inPoint In point |
{Number} | duration Duration |
{String} | aspectRatio Aspect ratio |
|
inline |
Create video effect object.
{String} | fxName 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. |
{String} | aspectRatio Aspect ratio |
{Boolean} | workingInRealtimeMode Working in realtime mode or not, default value is true. |
|
inline |
Create video transition object.
{String} | fxName For built-in video transitions, it is the name of the transition. If it is a resource package transition, it is the resource package id. |
{String} | aspectRatio Aspect ratio |
|
inline |
Get asset package manager.
|
inline |
Get maximum of queued render task.
|
inline |
Initializes human detection. Only once needed.
{String} | modelFilePath Mode file path |
{String} | licenseFilePath License file path |
{Number} | features Features, see NveHumanDetectionFeatureEnum for detail |
|
inline |
Initializes human detection extention. Need use initHumanDetection first.
{String} | modelFilePath Mode file path |
{String} | licenseFilePath License file path |
{Number} | features Features, see NveHumanDetectionFeatureEnum for detail |
|
inline |
Rendering effect.
{NveEffectInstance} | effectInstance Effect instance |
{ImageData|VideoFrame} | inputImageData Input image data |
{Number} | timestampMs Current rendering timestamp in millisecond |
{Number} | flags Flags |
|
inline |
Rendering special array effects.
{NveEffectInstance[]} | effectInstanceArray Effect instance array |
{ImageData|VideoFrame} | inputImageData Input image data |
{Number} | timestampMs Current rendering timestamp in millisecond |
{Number} | flags Flags |
|
inline |
Rendering special array effects.
{NveEffectInstance[]} | effectInstanceArray Effect instance array |
{ImageData[]|VideoFrame[]} | inputImageDataArray Input image data array |
{Number} | timestampMs Current rendering timestamp in millisecond |
{Number} | flags Flags |
|
inline |
Rendering effect.
{NveEffectInstance} | effectInstance Effect instance |
{ImageData[]|VideoFrame[]} | inputImageDataArray Input image data array |
{Number} | timestampMs Current rendering timestamp in millisecond |
{Number} | flags Flags |
|
inline |
Set maximum of queued render task.
{Number} | maxQueuedRenderTask Maximum value Since effect render task will be scheduled to an internal thread and be executed asynchronously, too many queued pending effect render task will consume excessive memory, this method setup a queued render task limitation, when the current queued render task reach the limitation newly created effect render task will be dropped except DontDropFrame render flag was set. |
|
inline |
Setup human detection data.
{Number} | dataType Data type of human detection, see NveHumanDetectionDataTypeEnum for detail |
{String} | dataFilePath Data file path |
|
inline |
Verifies the SDK license file.
{String} | licenseFilePath License file path |
|
inline |
Verifies the SDK license file url.
{String} | licenseFileUrl License file url |