Prevent renaming of properties used in API

PiperOrigin-RevId: 487661625
This commit is contained in:
Sebastian Schmidt 2022-11-10 15:54:50 -08:00 committed by Copybara-Service
parent b3ac1c1387
commit 1a59f0a217
9 changed files with 10 additions and 10 deletions

View File

@ -15,7 +15,7 @@
*/
/** A classification category. */
export interface Category {
export declare interface Category {
/** The probability score of this label category. */
score: number;

View File

@ -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.

View File

@ -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;

View File

@ -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.

View File

@ -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;

View File

@ -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. */

View File

@ -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;

View File

@ -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[][];

View File

@ -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[];