@mediapipe/tasks-vision 0.10.2 → 0.10.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediapipe/tasks-vision",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "MediaPipe Vision Tasks",
5
5
  "main": "vision_bundle.cjs",
6
6
  "browser": "vision_bundle.mjs",
package/vision.d.ts CHANGED
@@ -54,6 +54,12 @@ export declare interface BoundingBox {
54
54
  width: number;
55
55
  /** The height of the bounding box, in pixels. */
56
56
  height: number;
57
+ /**
58
+ * Angle of rotation of the original non-rotated box around the top left
59
+ * corner of the original non-rotated box, in clockwise degrees from the
60
+ * horizontal.
61
+ */
62
+ angle: number;
57
63
  }
58
64
 
59
65
  /**
@@ -2281,8 +2287,14 @@ declare interface VisionTaskOptions extends TaskRunnerOptions {
2281
2287
  /** Base class for all MediaPipe Vision Tasks. */
2282
2288
  declare abstract class VisionTaskRunner extends TaskRunner {
2283
2289
  protected constructor();
2284
- /** Configures the shared options of a vision task. */
2285
- applyOptions(options: VisionTaskOptions): Promise<void>;
2290
+ /**
2291
+ * Configures the shared options of a vision task.
2292
+ *
2293
+ * @param options The options for the task.
2294
+ * @param loadTfliteModel Whether to load the model specified in
2295
+ * `options.baseOptions`.
2296
+ */
2297
+ applyOptions(options: VisionTaskOptions, loadTfliteModel?: boolean): Promise<void>;
2286
2298
  /** Closes and cleans up the resources held by this task. */
2287
2299
  close(): void;
2288
2300
  }
@@ -2308,6 +2320,8 @@ declare interface WasmFileset {
2308
2320
  wasmLoaderPath: string;
2309
2321
  /** The path to the Wasm binary. */
2310
2322
  wasmBinaryPath: string;
2323
+ /** The optional path to the asset loader script. */
2324
+ assetLoaderPath?: string;
2311
2325
  }
2312
2326
 
2313
2327
  export { }