Skip to content

Fix for frame stride wider than frame width for 1080p issue#22332

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
komakai:android-cam-stride
Sep 18, 2022
Merged

Fix for frame stride wider than frame width for 1080p issue#22332
opencv-pushbot merged 1 commit intoopencv:4.xfrom
komakai:android-cam-stride

Conversation

@komakai
Copy link
Copy Markdown
Contributor

@komakai komakai commented Aug 2, 2022

Pull Request Readiness Checklist

  • 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

Fix #22101

Adjust the plane lengths check for Android Camera to consider the case where the frame stride is longer than the frame width.
If the frame stride is longer than the frame width then use a submat to exclude the unwanted data on the right of the image

@asmorkalov
Copy link
Copy Markdown
Contributor

Related: #22113

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.

Thank you 👍

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.

VideoCapture::read() fails at 1080p on Android

4 participants