;
export interface BoundingBox {
width?: Number;
height?: Number;
left?: Number;
top?: Number;
}
export interface IdentifyLabelsOutput {
labels?: {
name: string;
boundingBoxes: BoundingBox[];
metadata?: Object;
}[];
unsafe?: 'YES' | 'NO' | 'UNKNOWN';
}
export interface IdentifyEntitiesInput {
entities: IdentifyFromCollection | IdentifyCelebrities | IdentifyEntities;
}
export interface IdentifyFromCollection {
source: IdentifySource;
collection: true;
collectionId?: string;
maxEntities?: number;
}
export interface IdentifyCelebrities {
source: IdentifySource;
celebrityDetection: true;
}
export interface IdentifyEntities {
source: IdentifySource;
}
export interface FaceAttributes {
smile?: boolean;
eyeglasses?: boolean;
sunglasses?: boolean;
gender?: string;
beard?: boolean;
mustache?: boolean;
eyesOpen?: boolean;
mouthOpen?: boolean;
emotions?: string[];
}
export interface IdentifyEntitiesOutput {
entities: {
boundingBox?: BoundingBox;
ageRange?: {
low?: Number;
high?: Number;
};
landmarks?: {
type?: string;
x?: number;
y?: number;
}[];
attributes?: FaceAttributes;
metadata?: object;
}[];
}
export declare function isIdentifyFromCollection(obj: any): obj is IdentifyFromCollection;
export declare function isIdentifyCelebrities(obj: any): obj is IdentifyCelebrities;
export declare function isTranslateTextInput(obj: any): obj is TranslateTextInput;
export declare function isTextToSpeechInput(obj: any): obj is TextToSpeechInput;
export declare function isSpeechToTextInput(obj: any): obj is SpeechToTextInput;
export declare function isStorageSource(obj: any): obj is StorageSource;
export declare function isFileSource(obj: any): obj is FileSource;
export declare function isBytesSource(obj: any): obj is BytesSource;
export declare function isIdentifyTextInput(obj: any): obj is IdentifyTextInput;
export declare function isIdentifyLabelsInput(obj: any): obj is IdentifyLabelsInput;
export declare function isIdentifyEntitiesInput(obj: any): obj is IdentifyEntitiesInput;
export declare function isInterpretTextInput(obj: any): obj is InterpretTextInput;
export interface Geometry {
/**
* An axis-aligned coarse representation of the detected text's location on the image.
*/
BoundingBox?: BoundingBox;
/**
* Within the bounding box, a fine-grained polygon around the detected text.
*/
Polygon?: Array | Iterable;
}
export interface Relationship {
/**
* The type of relationship that the blocks in the IDs array have with the current block. The relationship can be VALUE or CHILD.
*/
Type?: 'VALUE' | 'CHILD' | string;
/**
* An array of IDs for related blocks. You can get the type of the relationship from the Type element.
*/
Ids?: Array | Iterable;
}
export declare type FeatureType = 'TABLES' | 'FORMS' | string;
export declare type FeatureTypes = FeatureType[];