com.google.mlkit.vision.camera
Stay organized with collections
Save and categorize content based on your preferences.
Annotations
Interfaces
DetectionTaskCallback<ResultT>
|
Interface for defining a post-processing action to
be executed for each detection.This is used by CameraXSource
for the pipeline to feed camera frames to detectors and invoke callbacks that are set
by developers. |
Classes
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eBarcode.Sms\u003c/code\u003e is a class representing an SMS message extracted from a barcode, like those with "SMS:" prefixes.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to retrieve the message content (\u003ccode\u003egetMessage()\u003c/code\u003e) and the phone number (\u003ccode\u003egetPhoneNumber()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003egetMessage()\u003c/code\u003e and \u003ccode\u003egetPhoneNumber()\u003c/code\u003e will return \u003ccode\u003enull\u003c/code\u003e if the respective information isn't found in the barcode.\u003c/p\u003e\n"]]],["The core content defines configurations and operations for camera-based vision tasks. `CameraSourceConfig` manages camera settings, built using `CameraSourceConfig.Builder`. `CameraFacing` specifies the camera's direction. `CameraXSource` manages the camera, interfacing with a `Detector` and a `DetectionTaskCallback`. The `DetectionTaskCallback` interface defines post-processing actions for each detection, used within the `CameraXSource` pipeline to feed frames to detectors and handle developer-defined callbacks.\n"],null,["# com.google.mlkit.vision.camera\n\n### Annotations\n\n|----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [CameraSourceConfig.CameraFacing](/android/reference/com/google/mlkit/vision/camera/CameraSourceConfig.CameraFacing) | Direction of the camera facing relative to device screen. |\n\n### Interfaces\n\n|-------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DetectionTaskCallback](/android/reference/com/google/mlkit/vision/camera/DetectionTaskCallback)\\\u003cResultT\\\u003e | Interface for defining a post-processing action to be executed for each detection.This is used by [CameraXSource](/android/reference/com/google/mlkit/vision/camera/CameraXSource) for the pipeline to feed camera frames to detectors and invoke callbacks that are set by developers. |\n\n### Classes\n\n|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CameraSourceConfig](/android/reference/com/google/mlkit/vision/camera/CameraSourceConfig) | Config class to hold different camera source settings. |\n| [CameraSourceConfig.Builder](/android/reference/com/google/mlkit/vision/camera/CameraSourceConfig.Builder) | Builder for CameraSourceConfig. |\n| [CameraXSource](/android/reference/com/google/mlkit/vision/camera/CameraXSource) | Manages the camera in conjunction with an underlying [Detector](/android/reference/com/google/mlkit/vision/interfaces/Detector) and [DetectionTaskCallback](/android/reference/com/google/mlkit/vision/camera/DetectionTaskCallback). |"]]