ml
interface
The Firebase ML service interface.
This module is available for the default app only.
Example
Get the ML service for the default app:
const defaultAppML = firebase.ml();
Properties
Methods
cloudDocumentTextRecognizerProcessImage
</>Detect text within a document using a local image file.
cloudDocumentTextRecognizerProcessImage(imageFilePath: string, cloudDocumentTextRecognizerOptions?: MLCloudDocumentTextRecognizerOptions): Promise<MLDocumentText>;
cloudImageLabelerProcessImage
</>Returns an array of labels (as MLImageLabel
) of a given local image file path.
cloudImageLabelerProcessImage(imageFilePath: string, cloudImageLabelerOptions?: MLCloudImageLabelerOptions): Promise<MLImageLabel[]>;
cloudLandmarkRecognizerProcessImage
</>Returns an array of landmarks (as MLLandmark
) of a given local image file path
cloudLandmarkRecognizerProcessImage(imageFilePath: string, cloudLandmarkRecognizerOptions?: MLCloudLandmarkRecognizerOptions): Promise<MLLandmark[]>;
cloudTextRecognizerProcessImage
</>Detect text from a local image file.
cloudTextRecognizerProcessImage(imageFilePath: string, cloudTextRecognizerOptions?: MLCloudTextRecognizerOptions): Promise<MLText>;
Statics
MLCloudLandmarkRecognizerModelType
</>ml.MLCloudLandmarkRecognizerModelType: ;
MLCloudTextRecognizerModelType
</>ml.MLCloudTextRecognizerModelType: ;
MLDocumentTextRecognizedBreakType
</>ml.MLDocumentTextRecognizedBreakType: ;