Skip to content

Android camera feature enhancements#26627

Merged
asmorkalov merged 4 commits intoopencv:4.xfrom
warped-rudi:torch
Dec 18, 2024
Merged

Android camera feature enhancements#26627
asmorkalov merged 4 commits intoopencv:4.xfrom
warped-rudi:torch

Conversation

@warped-rudi
Copy link
Copy Markdown
Contributor

@warped-rudi warped-rudi commented Dec 16, 2024

Closes #24687

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

Fixes the issue, that CAP_PROP_AUTO_EXPOSURE, CAP_PROP_EXPOSURE and CAP_PROP_ISO_SPEED
were not commited to the device until the next resolution change. Introduce a common
mechanism for such changes also to be used by CAP_PROP_ANDROID_DEVICE_TORCH.
Avoid re-initializing the capture when a resolution other then 640x480 is requested.
Allow to capture images with four bytes per pixel.
@asmorkalov asmorkalov added this to the 4.11.0 milestone Dec 16, 2024
@asmorkalov asmorkalov self-requested a review December 17, 2024 13:08
@asmorkalov asmorkalov self-assigned this Dec 17, 2024
@asmorkalov asmorkalov changed the title Android camera feature anhancements Android camera feature enhancements Dec 18, 2024
@warped-rudi
Copy link
Copy Markdown
Contributor Author

Thanks! I have more in the pipe, including zoom support...

@warped-rudi warped-rudi deleted the torch branch December 18, 2024 10:29
warped-rudi added a commit to warped-rudi/opencv that referenced this pull request Dec 28, 2024
…ced by opencv#26627

This avoids an intermediate color space conversion. Also fix some typos.
warped-rudi added a commit to warped-rudi/opencv that referenced this pull request Dec 29, 2024
Avoid double initialization of the camera object after opencv#26627 is in place.
@asmorkalov asmorkalov mentioned this pull request Jan 15, 2025
shyama7004 pushed a commit to shyama7004/opencv that referenced this pull request Jan 20, 2025
Android camera feature enhancements opencv#26627

Closes opencv#24687

### Pull Request Readiness Checklist

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

- [x] I agree to contribute to the project under Apache 2 License.
- [x] 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
NanQin555 pushed a commit to NanQin555/opencv that referenced this pull request Feb 24, 2025
Android camera feature enhancements opencv#26627

Closes opencv#24687

### Pull Request Readiness Checklist

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

- [x] I agree to contribute to the project under Apache 2 License.
- [x] 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
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 with CAP_ANDROID generates RGB frames instead of BGR

2 participants