Skip to content

Refactor JavaCamera2View to add option to override Camera2 session request options#24649

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/android_camera2_extact_request
Dec 6, 2023
Merged

Refactor JavaCamera2View to add option to override Camera2 session request options#24649
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/android_camera2_extact_request

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov commented Dec 5, 2023

Fixes #15369

Use app may implement inherited class and set CameraCaptureSession.StateCallback with any camera options. allocateSesstionStateCallback should be overridden for this.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

},
null
);
allocateSesstionStateCallback(), null);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mistype is here too.

@asmorkalov asmorkalov force-pushed the as/android_camera2_extact_request branch from 663ca4e to f9cddc2 Compare December 6, 2023 10:23
…quest options.

Co-authored-by: Maksim Shabunin <maksim.shabunin@gmail.com>
@asmorkalov asmorkalov force-pushed the as/android_camera2_extact_request branch from f9cddc2 to 938951f Compare December 6, 2023 10:25
@asmorkalov
Copy link
Copy Markdown
Contributor Author

@mshabunin Done.

@asmorkalov asmorkalov merged commit dc0c59f into opencv:4.x Dec 6, 2023
@asmorkalov asmorkalov mentioned this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[RFC] [Android] setting custom capture options for Camera2 API

2 participants