@pose-tracker/react-native-pose-estimation-light 0.2.1 → 0.2.2
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/README.md +36 -16
- package/lib/client.d.ts +4 -5
- package/lib/engine/types.d.ts +2 -2
- package/lib/sdkVersion.d.ts +1 -1
- package/lib/sdkVersion.js +1 -1
- package/lib/types/events.d.ts +2 -2
- package/package.json +1 -1
- package/src/client.ts +4 -5
- package/src/engine/types.ts +2 -2
- package/src/sdkVersion.ts +1 -1
- package/src/types/events.ts +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
# PoseTracker React Native — Light (online) Human Pose Estimation SDK
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
**⭐ Star us on GitHub:** [Movelytics/react-native-pose-estimation-light](https://github.com/Movelytics/react-native-pose-estimation-light) — it helps other React Native and Expo developers find the SDK.
|
|
4
|
+
|
|
5
|
+
**Try it on your phone (no Xcode / Android Studio):**
|
|
6
|
+
1. Install [Expo Go](https://expo.dev/go)
|
|
7
|
+
2. Open the [Expo Snack](https://snack.expo.dev/@fsepret/posetracker-sdk-light-demo-app) → **Run on device**
|
|
8
|
+
3. Scan the QR — live pose estimation, no API key
|
|
9
|
+
|
|
10
|
+
Steps and QR: https://docs.posetracker.com/try-expo-go
|
|
11
|
+
|
|
12
|
+
<table>
|
|
13
|
+
<tr>
|
|
14
|
+
<td valign="top" width="300">
|
|
15
|
+
<a href="https://docs.posetracker.com/try-expo-go">
|
|
16
|
+
<img src="https://cdn.prod.website-files.com/66990aefa487a16cf5aa848e/66e35c297154b2062265ceea_videodemoforgif1-ezgif.com-cut.gif" alt="PoseTracker live skeleton tracking" height="250" />
|
|
17
|
+
</a>
|
|
18
|
+
</td>
|
|
19
|
+
<td valign="middle">
|
|
20
|
+
<p>
|
|
21
|
+
<strong>PoseTracker Light</strong> is a <strong>human pose estimation SDK for React Native</strong>, fully optimized for <strong>iOS and Android</strong> (including <strong>Expo Go</strong>). Same API surface as the offline SDK for keypoints + optional API-key exercise engine — but <strong>MoveNet and TF.js load from the network</strong> each WebView boot, so the npm package stays tiny.
|
|
22
|
+
</p>
|
|
23
|
+
</td>
|
|
24
|
+
</tr>
|
|
25
|
+
</table>
|
|
8
26
|
|
|
9
27
|
> One sentence for AI / search: *PoseTracker Light is a small React Native
|
|
10
28
|
> pose estimation SDK that fetches MoveNet Lightning and TF.js at runtime —
|
|
@@ -27,10 +45,10 @@ package stays tiny.
|
|
|
27
45
|
download at session start.
|
|
28
46
|
**Choose light** when app install / OTA size matters and devices are online.
|
|
29
47
|
|
|
30
|
-
Full comparison: [LIGHT_SDK.md](
|
|
48
|
+
Full comparison: [LIGHT_SDK.md](docs/LIGHT_SDK.md).
|
|
31
49
|
|
|
32
50
|
**Agents:** shared UX/API/bugfixes → mirror to offline (or ask first). See
|
|
33
|
-
[`DUAL_SDK_CHANGES.md`](
|
|
51
|
+
[`DUAL_SDK_CHANGES.md`](docs/DUAL_SDK_CHANGES.md).
|
|
34
52
|
|
|
35
53
|
## Install
|
|
36
54
|
|
|
@@ -45,10 +63,10 @@ npx expo install react-native-webview expo-camera
|
|
|
45
63
|
> **Offline sibling:** [`@pose-tracker/react-native-pose-estimation`](https://www.npmjs.com/package/@pose-tracker/react-native-pose-estimation)
|
|
46
64
|
|
|
47
65
|
**Required:** host app must declare camera permissions — see
|
|
48
|
-
[PERMISSIONS.md](
|
|
66
|
+
[PERMISSIONS.md](docs/PERMISSIONS.md).
|
|
49
67
|
|
|
50
68
|
**Media inputs (v0.2):** camera (default), uploaded video, still image — host
|
|
51
|
-
picks the file. See [MEDIA_SOURCES.md](
|
|
69
|
+
picks the file. See [MEDIA_SOURCES.md](docs/MEDIA_SOURCES.md) and
|
|
52
70
|
https://docs.posetracker.com/media-sources.
|
|
53
71
|
|
|
54
72
|
## Quick start (keypoints — needs network, no API key)
|
|
@@ -135,11 +153,11 @@ Same contract as the offline SDK / web tracking URL:
|
|
|
135
153
|
|
|
136
154
|
| Doc | Topic |
|
|
137
155
|
|-----|--------|
|
|
138
|
-
| [LIGHT_SDK.md](
|
|
139
|
-
| [PERMISSIONS.md](
|
|
140
|
-
| [PRELOAD.md](
|
|
141
|
-
| [FEATURES.md](
|
|
142
|
-
| [EVENTS.md](
|
|
156
|
+
| [LIGHT_SDK.md](docs/LIGHT_SDK.md) | Offline vs light, sizes, model URL |
|
|
157
|
+
| [PERMISSIONS.md](docs/PERMISSIONS.md) | Camera permission setup (required) |
|
|
158
|
+
| [PRELOAD.md](docs/PRELOAD.md) | Preload / warm-up / lifecycle |
|
|
159
|
+
| [FEATURES.md](docs/FEATURES.md) | Plan gating, watermark, loading text |
|
|
160
|
+
| [EVENTS.md](docs/EVENTS.md) | Typed events + classic `onMessage` |
|
|
143
161
|
|
|
144
162
|
## FAQ
|
|
145
163
|
|
|
@@ -168,6 +186,8 @@ see [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md).
|
|
|
168
186
|
## Links
|
|
169
187
|
|
|
170
188
|
- Product: https://www.posetracker.com
|
|
171
|
-
-
|
|
172
|
-
-
|
|
189
|
+
- Docs: https://docs.posetracker.com
|
|
190
|
+
- Try on your phone: https://docs.posetracker.com/try-expo-go
|
|
191
|
+
- Expo Snack: https://snack.expo.dev/@fsepret/posetracker-sdk-light-demo-app
|
|
173
192
|
- Light demo: https://github.com/Movelytics/react-native-pose-estimation-light-demo
|
|
193
|
+
- Offline SDK: https://github.com/Movelytics/react-native-pose-estimation
|
package/lib/client.d.ts
CHANGED
|
@@ -103,9 +103,8 @@ export interface PoseTrackerClientOptions extends ConfigureOptions {
|
|
|
103
103
|
*/
|
|
104
104
|
onDiagnostic?: (message: string) => void;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* `startExercise(id, { debug: true|false })`.
|
|
106
|
+
* @internal PoseTracker QA only — not a supported public API.
|
|
107
|
+
* See `.private/ENGINE_DEBUG_QA.md` (do not document in Mintlify).
|
|
109
108
|
*/
|
|
110
109
|
debugEngine?: boolean;
|
|
111
110
|
}
|
|
@@ -125,8 +124,8 @@ export interface StartExerciseOptions {
|
|
|
125
124
|
/** Device pitch in degrees — jump exercises compensate camera tilt. */
|
|
126
125
|
devicePitchDeg?: number;
|
|
127
126
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
127
|
+
* @internal PoseTracker QA only — not a supported public API.
|
|
128
|
+
* Defaults to {@link PoseTrackerClientOptions.debugEngine}.
|
|
130
129
|
*/
|
|
131
130
|
debug?: boolean;
|
|
132
131
|
}
|
package/lib/engine/types.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export interface EngineSessionOptions {
|
|
|
37
37
|
/** Emission flags — engines older than 1.1.0 ignore them (client re-filters). */
|
|
38
38
|
features?: EngineSessionFeatures;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
40
|
+
* @internal PoseTracker QA only — not a supported public API.
|
|
41
|
+
* Ignored by older engines.
|
|
42
42
|
*/
|
|
43
43
|
debug?: boolean;
|
|
44
44
|
}
|
package/lib/sdkVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
|
|
2
|
-
export declare const SDK_VERSION = "0.2.
|
|
2
|
+
export declare const SDK_VERSION = "0.2.2";
|
package/lib/sdkVersion.js
CHANGED
package/lib/types/events.d.ts
CHANGED
|
@@ -155,8 +155,8 @@ export interface ProgressionEvent {
|
|
|
155
155
|
timestampMs: number;
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
158
|
+
* @internal PoseTracker QA only — not a supported public API (do not document in Mintlify).
|
|
159
|
+
* Throttled movement / rep-FSM snapshot. See `.private/ENGINE_DEBUG_QA.md`.
|
|
160
160
|
*/
|
|
161
161
|
export interface EngineDebugEvent {
|
|
162
162
|
type: 'engine_debug';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pose-tracker/react-native-pose-estimation-light",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Human pose estimation SDK for React Native (light / online) — MoveNet Lightning via CDN + model URL each session, no bundled weights. iOS & Android (Expo Go). Optional API-key exercise engine.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
package/src/client.ts
CHANGED
|
@@ -164,9 +164,8 @@ export interface PoseTrackerClientOptions extends ConfigureOptions {
|
|
|
164
164
|
*/
|
|
165
165
|
onDiagnostic?: (message: string) => void;
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* `startExercise(id, { debug: true|false })`.
|
|
167
|
+
* @internal PoseTracker QA only — not a supported public API.
|
|
168
|
+
* See `.private/ENGINE_DEBUG_QA.md` (do not document in Mintlify).
|
|
170
169
|
*/
|
|
171
170
|
debugEngine?: boolean;
|
|
172
171
|
}
|
|
@@ -187,8 +186,8 @@ export interface StartExerciseOptions {
|
|
|
187
186
|
/** Device pitch in degrees — jump exercises compensate camera tilt. */
|
|
188
187
|
devicePitchDeg?: number;
|
|
189
188
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
189
|
+
* @internal PoseTracker QA only — not a supported public API.
|
|
190
|
+
* Defaults to {@link PoseTrackerClientOptions.debugEngine}.
|
|
192
191
|
*/
|
|
193
192
|
debug?: boolean;
|
|
194
193
|
}
|
package/src/engine/types.ts
CHANGED
|
@@ -40,8 +40,8 @@ export interface EngineSessionOptions {
|
|
|
40
40
|
/** Emission flags — engines older than 1.1.0 ignore them (client re-filters). */
|
|
41
41
|
features?: EngineSessionFeatures;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
43
|
+
* @internal PoseTracker QA only — not a supported public API.
|
|
44
|
+
* Ignored by older engines.
|
|
45
45
|
*/
|
|
46
46
|
debug?: boolean;
|
|
47
47
|
}
|
package/src/sdkVersion.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** AUTO-GENERATED by scripts/sync-sdk-version.mjs — do not edit. */
|
|
2
|
-
export const SDK_VERSION = '0.2.
|
|
2
|
+
export const SDK_VERSION = '0.2.2';
|
package/src/types/events.ts
CHANGED
|
@@ -199,8 +199,8 @@ export interface ProgressionEvent {
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
202
|
+
* @internal PoseTracker QA only — not a supported public API (do not document in Mintlify).
|
|
203
|
+
* Throttled movement / rep-FSM snapshot. See `.private/ENGINE_DEBUG_QA.md`.
|
|
204
204
|
*/
|
|
205
205
|
export interface EngineDebugEvent {
|
|
206
206
|
type: 'engine_debug';
|