Fixed problem with saving images in Android sample#24622
Fixed problem with saving images in Android sample#24622asmorkalov merged 6 commits intoopencv:4.xfrom
Conversation
asmorkalov
left a comment
There was a problem hiding this comment.
I propose not introduce new dependency, but reuse approach from.
You just need to override behaviour of base class.
|
asmorkalov
left a comment
There was a problem hiding this comment.
I tried the solution manually. Works well, besides the first photo. I propose to move saving permission request to the very beginning. Otherwise the first image is not saved.
|
@mshabunin Could you take a look the PR and related changes in CI and environment. |
mshabunin
left a comment
There was a problem hiding this comment.
Looks good to me. Do not forget to revert pipeline branch before merge.
Yes, it saves image only on the next tap after confirming memory access. The user can decline assess request, so we still may need to ask for it on every image save. |
|
Tested on Android 9 and Android 10. Works fine. |
…ple-img-save Fixed problem with saving images in Android sample opencv#24622 Fixes opencv#24590 Current code for saving images in Android sample worked only on very old phones. Added support for modern Android versions. Required: - opencv/ci-gha-workflow#127 - opencv-infrastructure/opencv-gha-dockerfile#27
Fixes #24590
Current code for saving images in Android sample worked only on very old phones.
Added support for modern Android versions.
Required: