Fix Typo
PiperOrigin-RevId: 525861968
This commit is contained in:
parent
bd73617e5c
commit
e9bb849503
|
@ -55,7 +55,7 @@ const DEFAULT_OUTPUT_CONFIDENCE_MASKS = true;
|
||||||
* asynchronous processing is needed, all data needs to be copied before the
|
* asynchronous processing is needed, all data needs to be copied before the
|
||||||
* callback returns.
|
* callback returns.
|
||||||
*/
|
*/
|
||||||
export type InteractiveSegmenterCallack =
|
export type InteractiveSegmenterCallback =
|
||||||
(result: InteractiveSegmenterResult) => void;
|
(result: InteractiveSegmenterResult) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -202,7 +202,7 @@ export class InteractiveSegmenter extends VisionTaskRunner {
|
||||||
*/
|
*/
|
||||||
segment(
|
segment(
|
||||||
image: ImageSource, roi: RegionOfInterest,
|
image: ImageSource, roi: RegionOfInterest,
|
||||||
callback: InteractiveSegmenterCallack): void;
|
callback: InteractiveSegmenterCallback): void;
|
||||||
/**
|
/**
|
||||||
* Performs interactive segmentation on the provided single image and invokes
|
* Performs interactive segmentation on the provided single image and invokes
|
||||||
* the callback with the response. The `roi` parameter is used to represent a
|
* the callback with the response. The `roi` parameter is used to represent a
|
||||||
|
@ -231,12 +231,12 @@ export class InteractiveSegmenter extends VisionTaskRunner {
|
||||||
segment(
|
segment(
|
||||||
image: ImageSource, roi: RegionOfInterest,
|
image: ImageSource, roi: RegionOfInterest,
|
||||||
imageProcessingOptions: ImageProcessingOptions,
|
imageProcessingOptions: ImageProcessingOptions,
|
||||||
callback: InteractiveSegmenterCallack): void;
|
callback: InteractiveSegmenterCallback): void;
|
||||||
segment(
|
segment(
|
||||||
image: ImageSource, roi: RegionOfInterest,
|
image: ImageSource, roi: RegionOfInterest,
|
||||||
imageProcessingOptionsOrCallback: ImageProcessingOptions|
|
imageProcessingOptionsOrCallback: ImageProcessingOptions|
|
||||||
InteractiveSegmenterCallack,
|
InteractiveSegmenterCallback,
|
||||||
callback?: InteractiveSegmenterCallack): void {
|
callback?: InteractiveSegmenterCallback): void {
|
||||||
const imageProcessingOptions =
|
const imageProcessingOptions =
|
||||||
typeof imageProcessingOptionsOrCallback !== 'function' ?
|
typeof imageProcessingOptionsOrCallback !== 'function' ?
|
||||||
imageProcessingOptionsOrCallback :
|
imageProcessingOptionsOrCallback :
|
||||||
|
|
Loading…
Reference in New Issue
Block a user