Go to console

FirebaseVision

public class FirebaseVision extends Object

Entry class for Firebase machine learning vision services.

To use this class, get an instance via getInstance() or getInstance(FirebaseApp), and then get an instance of a detector. The code below is an example of getting an instance of a face detector:


 FirebaseVisionFaceDetector faceDetector = FirebaseVision.getInstance().getVisionFaceDetector();
 

See individual detector classes for details.

Public Method Summary

FirebaseVisionDocumentTextRecognizer
FirebaseVisionDocumentTextRecognizer
getCloudDocumentTextRecognizer()
Gets a FirebaseVisionDocumentTextRecognizer that can detect document text in a supplied image with default options.
FirebaseVisionImageLabeler
getCloudImageLabeler(FirebaseVisionCloudImageLabelerOptions options)
Gets a cloud version of FirebaseVisionImageLabeler that can detect labels in a supplied image.
FirebaseVisionImageLabeler
getCloudImageLabeler()
Gets a cloud version of FirebaseVisionImageLabeler that can detect labels in a supplied image with default options.
FirebaseVisionTextRecognizer
getCloudTextRecognizer()
Gets a FirebaseVisionTextRecognizer to perform optical character recognition with cloud model and default options.
FirebaseVisionTextRecognizer
getCloudTextRecognizer(FirebaseVisionCloudTextRecognizerOptions options)
Gets a FirebaseVisionTextRecognizer to perform optical character recognition with cloud model and provided options.
static FirebaseVision
getInstance()
Gets an instance of FirebaseVision associated with the default FirebaseApp.
static FirebaseVision
getInstance(FirebaseApp app)
Gets an instance of FirebaseVision associated with the supplied FirebaseApp.
FirebaseVisionImageLabeler
getOnDeviceAutoMLImageLabeler(FirebaseVisionOnDeviceAutoMLImageLabelerOptions options)
Gets an on device version of FirebaseVisionImageLabeler that labels a supplied image, using a model trained from Firebase AutoML.
FirebaseVisionImageLabeler
getOnDeviceImageLabeler()
Gets an on device version of FirebaseVisionImageLabeler that labels a supplied image with a default FirebaseVisionOnDeviceImageLabelerOptions.
FirebaseVisionImageLabeler
getOnDeviceImageLabeler(FirebaseVisionOnDeviceImageLabelerOptions options)
Gets an on device version of FirebaseVisionImageLabeler that labels a supplied image.
FirebaseVisionObjectDetector
getOnDeviceObjectDetector()
Gets a FirebaseVisionObjectDetector that can detect objects in a supplied image with default options.
FirebaseVisionObjectDetector
getOnDeviceObjectDetector(FirebaseVisionObjectDetectorOptions options)
Gets a FirebaseVisionObjectDetector that can detect objects in a supplied image with given options.
FirebaseVisionTextRecognizer
getOnDeviceTextRecognizer()
Gets a FirebaseVisionTextRecognizer to perform optical character recognition with on-device model.
FirebaseVisionBarcodeDetector
getVisionBarcodeDetector(FirebaseVisionBarcodeDetectorOptions options)
Gets a FirebaseVisionBarcodeDetector that can detect barcodes in a supplied image.
FirebaseVisionBarcodeDetector
getVisionBarcodeDetector()
Gets a FirebaseVisionBarcodeDetector that can detect barcodes in a supplied image with a default FirebaseVisionBarcodeDetectorOptions.
FirebaseVisionCloudLandmarkDetector
getVisionCloudLandmarkDetector()
Gets a FirebaseVisionCloudLandmarkDetector that can detect landmark in a supplied image with default options.
FirebaseVisionCloudLandmarkDetector
FirebaseVisionFaceDetector
getVisionFaceDetector()
Gets a FirebaseVisionFaceDetector that detects faces in a supplied image with a default FirebaseVisionFaceDetectorOptions.
FirebaseVisionFaceDetector
getVisionFaceDetector(FirebaseVisionFaceDetectorOptions options)
Gets a FirebaseVisionFaceDetector that detects faces in a supplied image.
boolean
isStatsCollectionEnabled()
Determines whether stats collection in FirebaseVision is enabled or disabled
void
setStatsCollectionEnabled(boolean enable)
Enables stats collection in ML Kit vision.

Inherited Method Summary

Public Methods