Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 598872928
  • Loading branch information
frigus02 authored and copybara-github committed Jan 16, 2024
1 parent 2a8b76b commit 7a901a2
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions mediapipe/tasks/web/vision/core/drawing_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {ImageSource} from '../../../../web/graph_runner/graph_runner';
export type Callback<I, O> = (input: I) => O;

// Used in public API
export {ImageSource};
export {type ImageSource};

/** Data that a user can use to specialize drawing options. */
export declare interface LandmarkData {
Expand Down Expand Up @@ -111,7 +111,7 @@ function resolve<O, I>(value: O|Callback<I, O>, data: I): O {
return value instanceof Function ? value(data) : value;
}

export {RGBAColor, CategoryToColorMap};
export {type RGBAColor, type CategoryToColorMap};

/** Helper class to visualize the result of a MediaPipe Vision task. */
export class DrawingUtils {
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/tasks/web/vision/face_detector/face_detector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const FACE_DETECTOR_GRAPH =

export * from './face_detector_options';
export * from './face_detector_result';
export {ImageSource}; // Used in the public API
export {type ImageSource}; // Used in the public API

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {FACE_LANDMARKS_CONTOURS, FACE_LANDMARKS_FACE_OVAL, FACE_LANDMARKS_LEFT_E

export * from './face_landmarker_options';
export * from './face_landmarker_result';
export {ImageSource};
export {type ImageSource};

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
2 changes: 1 addition & 1 deletion mediapipe/tasks/web/vision/face_stylizer/face_stylizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {ImageSource, WasmModule} from '../../../../web/graph_runner/graph_runner
import {FaceStylizerOptions} from './face_stylizer_options';

export * from './face_stylizer_options';
export {ImageSource}; // Used in the public API
export {type ImageSource}; // Used in the public API

const IMAGE_STREAM = 'image_in';
const NORM_RECT_STREAM = 'norm_rect';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {GestureRecognizerResult} from './gesture_recognizer_result';

export * from './gesture_recognizer_options';
export * from './gesture_recognizer_result';
export {ImageSource};
export {type ImageSource};

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {HandLandmarkerResult} from './hand_landmarker_result';

export * from './hand_landmarker_options';
export * from './hand_landmarker_result';
export {ImageSource};
export {type ImageSource};

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import {HolisticLandmarkerResult} from './holistic_landmarker_result';

export * from './holistic_landmarker_options';
export * from './holistic_landmarker_result';
export {ImageSource};
export {type ImageSource};

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {Classifications} from '../../../../tasks/web/components/containers/class
import {Landmark, NormalizedLandmark} from '../../../../tasks/web/components/containers/landmark';
import {MPMask} from '../../../../tasks/web/vision/core/mask';

export {Category, Landmark, NormalizedLandmark};
export {type Category, type Landmark, type NormalizedLandmark};

/**
* Represents the holistic landmarks detection results generated by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const CLASSIFICATIONS_STREAM = 'classifications';

export * from './image_classifier_options';
export * from './image_classifier_result';
export {ImageSource}; // Used in the public API
export {type ImageSource}; // Used in the public API

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const TEXT_EMBEDDER_CALCULATOR =

export * from './image_embedder_options';
export * from './image_embedder_result';
export {ImageSource}; // Used in the public API
export {type ImageSource}; // Used in the public API

/** Performs embedding extraction on images. */
export class ImageEmbedder extends VisionTaskRunner {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {ImageSegmenterResult} from './image_segmenter_result';

export * from './image_segmenter_options';
export * from './image_segmenter_result';
export {ImageSource}; // Used in the public API
export {type ImageSource}; // Used in the public API

const IMAGE_STREAM = 'image_in';
const NORM_RECT_STREAM = 'norm_rect';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import {InteractiveSegmenterResult} from './interactive_segmenter_result';

export * from './interactive_segmenter_options';
export * from './interactive_segmenter_result';
export {RegionOfInterest};
export {ImageSource};
export {type RegionOfInterest};
export {type ImageSource};

const IMAGE_IN_STREAM = 'image_in';
const NORM_RECT_IN_STREAM = 'norm_rect_in';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const OBJECT_DETECTOR_GRAPH = 'mediapipe.tasks.vision.ObjectDetectorGraph';

export * from './object_detector_options';
export * from './object_detector_result';
export {ImageSource}; // Used in the public API
export {type ImageSource}; // Used in the public API

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {POSE_CONNECTIONS} from './pose_landmarks_connections';

export * from './pose_landmarker_options';
export * from './pose_landmarker_result';
export {ImageSource};
export {type ImageSource};

// The OSS JS API does not support the builder pattern.
// tslint:disable:jspb-use-builder-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {Category} from '../../../../tasks/web/components/containers/category';
import {Landmark, NormalizedLandmark} from '../../../../tasks/web/components/containers/landmark';
import {MPMask} from '../../../../tasks/web/vision/core/mask';

export {Category, Landmark, NormalizedLandmark};
export {type Category, type Landmark, type NormalizedLandmark};

/**
* Represents the pose landmarks deection results generated by `PoseLandmarker`.
Expand Down

0 comments on commit 7a901a2

Please sign in to comment.