deepar 5.1.1 → 5.2.0-chromeExtension
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION.txt +1 -1
- package/js/deepar.esm.js +1 -1
- package/js/deepar.js +1 -1
- package/js/types/DeepAR.d.ts +11 -1
- package/js/types/callbacks.d.ts +13 -0
- package/js/types/initParams.d.ts +33 -0
- package/js/types/version.d.ts +1 -1
- package/js/types/wristData.d.ts +13 -0
- package/lib/README.md +7 -0
- package/lib/VERSION.txt +1 -0
- package/lib/js/deepar.esm.js +1 -0
- package/lib/js/deepar.js +1 -0
- package/lib/js/types/DeepAR.d.ts +332 -0
- package/lib/js/types/callbacks.d.ts +63 -0
- package/lib/js/types/errors.d.ts +6 -0
- package/lib/js/types/faceData.d.ts +33 -0
- package/lib/js/types/footData.d.ts +9 -0
- package/lib/js/types/index.d.ts +9 -0
- package/lib/js/types/initParams.d.ts +157 -0
- package/lib/js/types/logType.d.ts +18 -0
- package/lib/js/types/scriptingApi.d.ts +107 -0
- package/lib/js/types/touchType.d.ts +34 -0
- package/lib/js/types/version.d.ts +5 -0
- package/lib/js/types/wristData.d.ts +13 -0
- package/lib/models/face/models-68-extreme.bin +0 -0
- package/lib/models/foot/foot-detection-96x96x6.bin +0 -0
- package/lib/models/foot/foot-model.obj +3965 -0
- package/lib/models/foot/foot-tracker-96x96x13-test.bin +0 -0
- package/lib/models/foot/foot-tracker-96x96x18-test.bin +0 -0
- package/lib/models/segmentation/segmentation-160x160-opt.bin +0 -0
- package/lib/models/wrist/wrist-base-2.obj +3815 -0
- package/lib/models/wrist/wrist-det-9.bin +0 -0
- package/lib/models/wrist/wrist-track.bin +0 -0
- package/lib/wasm/deepar.wasm +0 -0
- package/lib/wasm/libxzimgPoseEstimation.wasm +0 -0
- package/lib/wasm/tfjs-backend-wasm-simd.wasm +0 -0
- package/lib/wasm/tfjs-backend-wasm-threaded-simd.wasm +0 -0
- package/lib/wasm/tfjs-backend-wasm.wasm +0 -0
- package/models/wrist/wrist-base-2.obj +3815 -0
- package/models/wrist/wrist-det-9.bin +0 -0
- package/models/wrist/wrist-track.bin +0 -0
- package/package.json +1 -1
- package/wasm/deepar.wasm +0 -0
- package/wasm/libxzimgPoseEstimation.wasm +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeepAR Scripting API interop variable types.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum VarType {
|
|
5
|
+
Bool = 0,
|
|
6
|
+
Int = 1,
|
|
7
|
+
Double = 2,
|
|
8
|
+
String = 3
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A DeepAR Scripting API interop namespace.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ScriptingAPI {
|
|
14
|
+
private module;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* @param module DeepAR emscripten module.
|
|
18
|
+
*/
|
|
19
|
+
constructor(module: any);
|
|
20
|
+
/**
|
|
21
|
+
* Check if variable with the given name is already created.
|
|
22
|
+
* @param name The variable name.
|
|
23
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
24
|
+
* @return boolean True if the variable is already created, false otherwise.
|
|
25
|
+
*/
|
|
26
|
+
hasVar(name: string, slot?: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Get the type of the variable with the given name.
|
|
29
|
+
* @param name The variable name.
|
|
30
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
31
|
+
* @return VarType The variable type.
|
|
32
|
+
*/
|
|
33
|
+
getVarType(name: string, slot?: string): VarType;
|
|
34
|
+
/**
|
|
35
|
+
* Get boolean variable with the given name.
|
|
36
|
+
* @param name The variable name.
|
|
37
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
38
|
+
* @return boolean Value of the variable with the specified name.
|
|
39
|
+
*/
|
|
40
|
+
getBoolVar(name: string, slot?: string): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Get int variable with the given name.
|
|
43
|
+
* @param name The variable name.
|
|
44
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
45
|
+
* @return int Value of the variable with the specified name.
|
|
46
|
+
*/
|
|
47
|
+
getIntVar(name: string, slot?: string): number;
|
|
48
|
+
/**
|
|
49
|
+
* Get the double variable with the given name.
|
|
50
|
+
* @param name The variable name.
|
|
51
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
52
|
+
* @return double Value of the variable with the specified name.
|
|
53
|
+
*/
|
|
54
|
+
getDoubleVar(name: string, slot?: string): number;
|
|
55
|
+
/**
|
|
56
|
+
* Get the string variable with the given name.
|
|
57
|
+
* @param name The variable name.
|
|
58
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
59
|
+
* @return string Value of the variable with the specified name.
|
|
60
|
+
*/
|
|
61
|
+
getStringVar(name: string, slot?: number): string;
|
|
62
|
+
/**
|
|
63
|
+
* Set the boolean variable with the given name.
|
|
64
|
+
* @param name The variable name.
|
|
65
|
+
* @param value Value to be set.
|
|
66
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
67
|
+
* @return True if the variable is created, false if the variable already exists and the new value is set.
|
|
68
|
+
*/
|
|
69
|
+
setBoolVar(name: string, value: boolean, slot?: string): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Set the int variable with the given name.
|
|
72
|
+
* @param name The variable name.
|
|
73
|
+
* @param value Value to be set.
|
|
74
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
75
|
+
* @return True if the variable is created, false if the variable already exists and the new value is set.
|
|
76
|
+
*/
|
|
77
|
+
setIntVar(name: string, value: number, slot?: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Set the double variable with the given name.
|
|
80
|
+
* @param name The variable name.
|
|
81
|
+
* @param value Value to be set.
|
|
82
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
83
|
+
* @return True if the variable is created, false if the variable already exists and the new value is set.
|
|
84
|
+
*/
|
|
85
|
+
setDoubleVar(name: string, value: number, slot?: string): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Set the string variable with the given name.
|
|
88
|
+
* @param name The variable name.
|
|
89
|
+
* @param value Value to be set.
|
|
90
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
91
|
+
* @return True if the variable is created, false if the variable already exists and the new value is set.
|
|
92
|
+
*/
|
|
93
|
+
setStringVar(name: string, value: string, slot?: string): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Delete variable with the given name.
|
|
96
|
+
* @param name The variable name.
|
|
97
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
98
|
+
* @return boolean True if the variable is deleted, false otherwise.
|
|
99
|
+
*/
|
|
100
|
+
deleteVar(name: string, slot?: string): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Clear all variables or variables from the specified effect.
|
|
103
|
+
* @param slot The slot of the effect in which to search the variable. If it is not given, variable will be searched for in all the effects.
|
|
104
|
+
* @return boolean True if one or more variables are deleted, false otherwise.
|
|
105
|
+
*/
|
|
106
|
+
clearVars(slot?: string): boolean;
|
|
107
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the touch/click type.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ARTouchType {
|
|
5
|
+
/**
|
|
6
|
+
* Touch started.
|
|
7
|
+
*/
|
|
8
|
+
Start = 0,
|
|
9
|
+
/**
|
|
10
|
+
* Touch is pressed and is being moved.
|
|
11
|
+
*/
|
|
12
|
+
Move = 1,
|
|
13
|
+
/**
|
|
14
|
+
* Touch ended.
|
|
15
|
+
*/
|
|
16
|
+
End = 2
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Information about the touch. Used by {@link DeepAR.touchOccurred}.
|
|
20
|
+
*/
|
|
21
|
+
export interface ARTouchInfo {
|
|
22
|
+
/**
|
|
23
|
+
* X coordinate.
|
|
24
|
+
*/
|
|
25
|
+
x: number;
|
|
26
|
+
/**
|
|
27
|
+
* Y coordinate
|
|
28
|
+
*/
|
|
29
|
+
y: number;
|
|
30
|
+
/**
|
|
31
|
+
* Touch type.
|
|
32
|
+
*/
|
|
33
|
+
touchType: ARTouchType;
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about the wrist being tracked. WristData object is constructed and passed in the {@link DeepARCallbacks.onWristTracked} callback.
|
|
3
|
+
*/
|
|
4
|
+
export interface WristData {
|
|
5
|
+
/**
|
|
6
|
+
* True if the wrist is detected, false otherwise.
|
|
7
|
+
*/
|
|
8
|
+
detected: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* True if the detected wrist is of the left hande. False if the detected wrist is of the right hand.
|
|
11
|
+
*/
|
|
12
|
+
isLeft: boolean;
|
|
13
|
+
}
|
|
Binary file
|
|
Binary file
|