Fix large image handling in WeChat QrCode detector#3287
Merged
asmorkalov merged 1 commit intoopencv:4.xfrom Aug 29, 2022
Merged
Fix large image handling in WeChat QrCode detector#3287asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov merged 1 commit intoopencv:4.xfrom
Conversation
071649f to
b07af9f
Compare
b07af9f to
017da1c
Compare
017da1c to
fe7dedd
Compare
3ec273f to
26646b3
Compare
55f2a7c to
7f8d4c1
Compare
asmorkalov
requested changes
Jul 28, 2022
| float resizeRatio = sqrt(img_w * img_h * 1.0 / (minInputSize * minInputSize)); | ||
| int detect_width = img_w / resizeRatio; | ||
| int detect_height = img_h / resizeRatio; | ||
| const float tmpScaleFactor = scaleFactor == -1.f ? sqrt(targetArea / (img_w * img_h)) : scaleFactor; |
Contributor
There was a problem hiding this comment.
it'll do upscale for small images like qvga 320x240. I propose to use original image size for it.
adc6b43 to
ab6ef02
Compare
ab6ef02 to
97a44dc
Compare
Contributor
Author
|
@alalek, default build:
|
921cb5e to
97a44dc
Compare
alalek
reviewed
Aug 18, 2022
97a44dc to
f090916
Compare
asmorkalov
approved these changes
Aug 22, 2022
Contributor
|
@AleksandrPanov Please squash commits before merge. |
10706c4 to
473e086
Compare
473e086 to
d85e858
Compare
add test add dnn data search
d85e858 to
2b0bbb5
Compare
2b0bbb5 to
087a100
Compare
8c44b61 to
2b0bbb5
Compare
Contributor
Author
|
@asmorkalov, all checks have passed |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3282
Merge with opencv/opencv_extra#984
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.