Prevent renaming of properties used in API
PiperOrigin-RevId: 487661625
This commit is contained in:
parent
b3ac1c1387
commit
1a59f0a217
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** A classification category. */
|
/** A classification category. */
|
||||||
export interface Category {
|
export declare interface Category {
|
||||||
/** The probability score of this label category. */
|
/** The probability score of this label category. */
|
||||||
score: number;
|
score: number;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
import {Category} from '../../../../tasks/web/components/containers/category';
|
import {Category} from '../../../../tasks/web/components/containers/category';
|
||||||
|
|
||||||
/** Classification results for a given classifier head. */
|
/** Classification results for a given classifier head. */
|
||||||
export interface Classifications {
|
export declare interface Classifications {
|
||||||
/**
|
/**
|
||||||
* The array of predicted categories, usually sorted by descending scores,
|
* The array of predicted categories, usually sorted by descending scores,
|
||||||
* e.g., from high to low probability.
|
* e.g., from high to low probability.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
* dimension of image, and the coordinates values are in the range of [0,1].
|
* dimension of image, and the coordinates values are in the range of [0,1].
|
||||||
* Otherwise, it represenet a point in world coordinates.
|
* Otherwise, it represenet a point in world coordinates.
|
||||||
*/
|
*/
|
||||||
export class Landmark {
|
export declare class Landmark {
|
||||||
/** The x coordinates of the landmark. */
|
/** The x coordinates of the landmark. */
|
||||||
x: number;
|
x: number;
|
||||||
|
|
||||||
|
|
2
mediapipe/tasks/web/core/base_options.d.ts
vendored
2
mediapipe/tasks/web/core/base_options.d.ts
vendored
|
@ -17,7 +17,7 @@
|
||||||
// Placeholder for internal dependency on trusted resource url
|
// Placeholder for internal dependency on trusted resource url
|
||||||
|
|
||||||
/** Options to configure MediaPipe Tasks in general. */
|
/** Options to configure MediaPipe Tasks in general. */
|
||||||
export interface BaseOptions {
|
export declare interface BaseOptions {
|
||||||
/**
|
/**
|
||||||
* The model path to the model asset file. Only one of `modelAssetPath` or
|
* The model path to the model asset file. Only one of `modelAssetPath` or
|
||||||
* `modelAssetBuffer` can be set.
|
* `modelAssetBuffer` can be set.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
import {BaseOptions} from '../../../tasks/web/core/base_options';
|
import {BaseOptions} from '../../../tasks/web/core/base_options';
|
||||||
|
|
||||||
/** Options to configure the Mediapipe Classifier Task. */
|
/** Options to configure the Mediapipe Classifier Task. */
|
||||||
export interface ClassifierOptions {
|
export declare interface ClassifierOptions {
|
||||||
/** Options to configure the loading of the model assets. */
|
/** Options to configure the loading of the model assets. */
|
||||||
baseOptions?: BaseOptions;
|
baseOptions?: BaseOptions;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// Placeholder for internal dependency on trusted resource url
|
// Placeholder for internal dependency on trusted resource url
|
||||||
|
|
||||||
/** An object containing the locations of all Wasm assets */
|
/** An object containing the locations of all Wasm assets */
|
||||||
export interface WasmLoaderOptions {
|
export declare interface WasmLoaderOptions {
|
||||||
/** The path to the Wasm loader script. */
|
/** The path to the Wasm loader script. */
|
||||||
wasmLoaderPath: string;
|
wasmLoaderPath: string;
|
||||||
/** The path to the Wasm binary. */
|
/** The path to the Wasm binary. */
|
||||||
|
|
|
@ -18,7 +18,7 @@ import {BaseOptions} from '../../../../tasks/web/core/base_options';
|
||||||
import {ClassifierOptions} from '../../../../tasks/web/core/classifier_options';
|
import {ClassifierOptions} from '../../../../tasks/web/core/classifier_options';
|
||||||
|
|
||||||
/** Options to configure the MediaPipe Gesture Recognizer Task */
|
/** Options to configure the MediaPipe Gesture Recognizer Task */
|
||||||
export interface GestureRecognizerOptions {
|
export declare interface GestureRecognizerOptions {
|
||||||
/** Options to configure the loading of the model assets. */
|
/** Options to configure the loading of the model assets. */
|
||||||
baseOptions?: BaseOptions;
|
baseOptions?: BaseOptions;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import {Landmark} from '../../../../tasks/web/components/containers/landmark';
|
||||||
/**
|
/**
|
||||||
* Represents the gesture recognition results generated by `GestureRecognizer`.
|
* Represents the gesture recognition results generated by `GestureRecognizer`.
|
||||||
*/
|
*/
|
||||||
export interface GestureRecognitionResult {
|
export declare interface GestureRecognitionResult {
|
||||||
/** Hand landmarks of detected hands. */
|
/** Hand landmarks of detected hands. */
|
||||||
landmarks: Landmark[][];
|
landmarks: Landmark[][];
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
import {Category} from '../../../../tasks/web/components/containers/category';
|
import {Category} from '../../../../tasks/web/components/containers/category';
|
||||||
|
|
||||||
/** An integer bounding box, axis aligned. */
|
/** An integer bounding box, axis aligned. */
|
||||||
export interface BoundingBox {
|
export declare interface BoundingBox {
|
||||||
/** The X coordinate of the top-left corner, in pixels. */
|
/** The X coordinate of the top-left corner, in pixels. */
|
||||||
originX: number;
|
originX: number;
|
||||||
/** The Y coordinate of the top-left corner, in pixels. */
|
/** The Y coordinate of the top-left corner, in pixels. */
|
||||||
|
@ -29,7 +29,7 @@ export interface BoundingBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Represents one object detected by the `ObjectDetector`. */
|
/** Represents one object detected by the `ObjectDetector`. */
|
||||||
export interface Detection {
|
export declare interface Detection {
|
||||||
/** A list of `Category` objects. */
|
/** A list of `Category` objects. */
|
||||||
categories: Category[];
|
categories: Category[];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user