Skip to content

Fix Android NDK camera's color format conversions#19855

Merged
opencv-pushbot merged 2 commits intoopencv:masterfrom
komakai:fix-android-ndk-camera-conversions
Apr 6, 2021
Merged

Fix Android NDK camera's color format conversions#19855
opencv-pushbot merged 2 commits intoopencv:masterfrom
komakai:fix-android-ndk-camera-conversions

Conversation

@komakai
Copy link
Copy Markdown
Contributor

@komakai komakai commented Apr 4, 2021

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 other license that is incompatible with OpenCV
  • The PR is proposed to proper branch

Follow up to #19597 to address #19597 (comment)

Adds support for setting the color conversion with the CV_CAP_PROP_FOURCC property
Removes support for CAP_PROP_CONVERT_RGB property
Sample at https://github.com/komakai/NdkCamtest updated to use the FOURCC property

Based on feedback from @xhj14012 add logging to warn that setting exposure/ISO property has no effect unless AutoExposure is off

android_pack_config=ndk-18-api-level-24.config.py
allow_multiple_commits=1

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Well done! Thank you 👍

BTW, Android Java camera code (JavaCameraView) provides "RGBA" frames (32-bit).

@opencv-pushbot opencv-pushbot merged commit 6e8daae into opencv:master Apr 6, 2021
@alalek alalek mentioned this pull request Apr 9, 2021
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.

3 participants