Skip to content

[camera] Add ImageCapture use case to CameraX plugin #111140

Closed
flutter/packages
#3287

Description

@camsim99

Overview

In the CameraX library, the ImageCapture class is used to take a picture, and thus, will need to be wrapped in the CameraX plugin.

Requirements

The following is a running list of the subclasses, constants, and methods required for adding the ImageCapture class to the CameraX plugin.

Subclasses

ImageCapture.Builder
  • ImageCapture.Builder setCaptureMode(int captureMode)
  • ImageCapture.Builder setFlashMode(int flashMode)
  • ImageCapture.Builder setTargetRotation(int rotation)
ImageCapture.OnImageCapturedCallback
  • void onCaptureSuccess(ImageProxy image)
  • void onError(ImageCaptureException exception)

Constants

  • int FLASH_MODE_AUTO
  • int FLASH_MODE_OFF
  • int FLASH_MODE_ON

Instance Methods

  • void setFlashMode(int flashMode)
  • void setTargetRotation(int rotation)
  • void takePicture(...)*

*One implementation will need to be picked. Depending on the choice, ImageCapture.OutputFileOptions may need to be additionally wrapped.

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    platform-androidAndroid applications specifically
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Sep 8, 2022
  2. added
    P2Important issues not at the top of the work list
    on Sep 8, 2022
  3. self-assigned this
    on Feb 21, 2023
  4. github-actions commented on Apr 5, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions