-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix large image handling in WeChat QrCode detector #3287
Conversation
071649f
to
b07af9f
Compare
b07af9f
to
017da1c
Compare
017da1c
to
fe7dedd
Compare
3ec273f
to
26646b3
Compare
55f2a7c
to
7f8d4c1
Compare
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@alalek, default build:
|
921cb5e
to
97a44dc
Compare
97a44dc
to
f090916
Compare
@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
@asmorkalov, all checks have passed |
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.