Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deepar

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepar - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0-alphaChromeExtension-alpha-816

js/types/wristData.d.ts

13

js/types/callbacks.d.ts
import { FaceData } from "./faceData";
import { FootData } from "./footData";
import { WristData } from "./wristData";
/**

@@ -28,2 +29,8 @@ * Callbacks from DeepAR notifying events.

/**
* Passes the information about the detected wrist. If this callback is set, it will get called every frame.
* NOTE: This callback is only called when the SDK does wrist tracking. For example, you laded some effect that uses wrist tracking (watch-try-on effects). But if no effect is loaded this callback will not get called because the SDK is not performing wrist tracking.
* @param wristData Information about the wrist.
*/
onWristTracked?: (wristData: WristData) => void;
/**
* Called when foot tracking is fully initialized.

@@ -41,2 +48,8 @@ * Be sure to check {@link DeepAR.isFootTrackingInitialized} before setting this callback.

/**
* Called when wrist tracking is fully initialized.
* Be sure to check {@link DeepAR.isWristTrackingInitialized} before setting this callback.
* Because this callback is called only once. So if you set this callback after the wrist tracking is initialized, it will not be called again.
*/
onWristTrackingInitialized?: () => void;
/**
* Called when the animation player transitions to a new state.

@@ -43,0 +56,0 @@ * @param newState Name of the new state that is being transitioned to.

12

js/types/DeepAR.d.ts

@@ -268,3 +268,3 @@ import { ARTouchInfo } from "./touchType";

* But this method will start loading the segmentation immediately.
* To start initializing foot tracking as soon as possible pass "segmentationInit" hint in the {@link initialize} function (see {@link DeepARParams}). <br><br>
* To start initializing segmentation as soon as possible pass "segmentationInit" hint in the {@link initialize} function (see {@link DeepARParams}). <br><br>
*

@@ -280,2 +280,6 @@ * If the segmentation is already initialized it will do nothing.

/**
* Check weather the wrist tracking is initialized.
*/
isWristTrackingInitialized(): boolean;
/**
* Display profiling metrics on preview.

@@ -324,2 +328,8 @@ * @param enabled

showColliders(enabled: boolean): void;
/**
* Sets the preview zoom.
*
* @param zoomLevel Floating point number determining how much to zoom in. Value <= 1 will disable zoom. Example, value 2.0 puts 2x zoom.
*/
setZoom(zoomLevel: number): void;
}

@@ -120,2 +120,35 @@ /**

/**
* Foot tracking module paths and options.
*/
wristTrackingConfig?: {
/**
* Path to the pose libPoseEstimation.wasm file, e.g. "/path/to/deepar/wasm/libPoseEstimation.wasm".
*/
poseEstimationWasmPath?: string;
/**
* Path to the detector model, e.g. "/path/to/deepar/models/foot/foot-detector.bin".
*/
detectorPath?: string;
/**
* Path to the tracker model, e.g. "/path/to/deepar/models/foot/foot-tracker.bin".
*/
trackerPath?: string;
/**
* Path to the foot model object file, e.g. "/path/to/deepar/models/foot/foot-model.obj".
*/
objPath?: string;
/**
* Path to tfjs-backend-wasm.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm.wasm"
*/
tfjsBackendWasmPath?: string;
/**
* Path to tfjs-backend-wasm-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-simd.wasm"
*/
tfjsBackendWasmSimdPath?: string;
/**
* Path to tfjs-backend-wasm-threaded-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-threaded-simd.wasm"
*/
tfjsBackendWasmThreadedSimdPath?: string;
};
/**
* Path to deepar.wasm file. Something like "/path/to/deepar/wasm/deepar.wasm".

@@ -122,0 +155,0 @@ */

2

js/types/version.d.ts
/**
* DeepAR Web SDK version.
*/
declare const version = "5.1.1";
declare const version = "5.2.0-alphaChromeExtension-alpha-816";
export { version };
{
"name": "deepar",
"version": "5.1.1",
"version": "5.2.0-alphaChromeExtension-alpha-816",
"description": "The official DeepAR Web SDK",

@@ -5,0 +5,0 @@ "main": "js/deepar.esm.js",

@@ -1,1 +0,1 @@

DeepAR SDK version: v5.1.1
DeepAR SDK version: v5.2.0-alphaChromeExtension-alpha-816

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc