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. */
|
||||
export interface Category {
|
||||
export declare interface Category {
|
||||
/** The probability score of this label category. */
|
||||
score: number;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
import {Category} from '../../../../tasks/web/components/containers/category';
|
||||
|
||||
/** Classification results for a given classifier head. */
|
||||
export interface Classifications {
|
||||
export declare interface Classifications {
|
||||
/**
|
||||
* The array of predicted categories, usually sorted by descending scores,
|
||||
* 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].
|
||||
* Otherwise, it represenet a point in world coordinates.
|
||||
*/
|
||||
export class Landmark {
|
||||
export declare class Landmark {
|
||||
/** The x coordinates of the landmark. */
|
||||
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
|
||||
|
||||
/** 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
|
||||
* `modelAssetBuffer` can be set.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
import {BaseOptions} from '../../../tasks/web/core/base_options';
|
||||
|
||||
/** Options to configure the Mediapipe Classifier Task. */
|
||||
export interface ClassifierOptions {
|
||||
export declare interface ClassifierOptions {
|
||||
/** Options to configure the loading of the model assets. */
|
||||
baseOptions?: BaseOptions;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// Placeholder for internal dependency on trusted resource url
|
||||
|
||||
/** An object containing the locations of all Wasm assets */
|
||||
export interface WasmLoaderOptions {
|
||||
export declare interface WasmLoaderOptions {
|
||||
/** The path to the Wasm loader script. */
|
||||
wasmLoaderPath: string;
|
||||
/** 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';
|
||||
|
||||
/** Options to configure the MediaPipe Gesture Recognizer Task */
|
||||
export interface GestureRecognizerOptions {
|
||||
export declare interface GestureRecognizerOptions {
|
||||
/** Options to configure the loading of the model assets. */
|
||||
baseOptions?: BaseOptions;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ import {Landmark} from '../../../../tasks/web/components/containers/landmark';
|
|||
/**
|
||||
* Represents the gesture recognition results generated by `GestureRecognizer`.
|
||||
*/
|
||||
export interface GestureRecognitionResult {
|
||||
export declare interface GestureRecognitionResult {
|
||||
/** Hand landmarks of detected hands. */
|
||||
landmarks: Landmark[][];
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
import {Category} from '../../../../tasks/web/components/containers/category';
|
||||
|
||||
/** An integer bounding box, axis aligned. */
|
||||
export interface BoundingBox {
|
||||
export declare interface BoundingBox {
|
||||
/** The X coordinate of the top-left corner, in pixels. */
|
||||
originX: number;
|
||||
/** The Y coordinate of the top-left corner, in pixels. */
|
||||
|
@ -29,7 +29,7 @@ export interface BoundingBox {
|
|||
}
|
||||
|
||||
/** Represents one object detected by the `ObjectDetector`. */
|
||||
export interface Detection {
|
||||
export declare interface Detection {
|
||||
/** A list of `Category` objects. */
|
||||
categories: Category[];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user