-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Date type fixer #2972
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
Date type fixer #2972
Conversation
modify data type of m_iNowIdx
Just waiting for Maintainers to trigger CI manually. |
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.
Thank you for contribution 👍
This just fixed crash and didn't get close to the program getting stuck for a long time,I tested a 4.5mb image, which took as much as 2m28.953s |
@alalek We also encountered this problem. |
Hi, @Channingss and @billklk . Try to decrease the binarizers(
opencv_contrib/modules/wechat_qrcode/src/zxing/qrcode/detector/finder_pattern_finder.cpp Line 238 in d5317d6
As far as we observe, connected cells algorithm may take more time. You can try to disable it. |
Fixes #2911
When the hand is covered, there are too many unicomblock, which resulting in a large
m_iNowIdx
, but the data type isunsigned short
, make data overflow to zero.opencv_contrib/modules/wechat_qrcode/src/zxing/common/unicomblock.hpp
Line 35 in 8eec886
and it will fall into an infinite loop:
opencv_contrib/modules/wechat_qrcode/src/zxing/common/unicomblock.cpp
Line 103 in 8eec886
so we need modify data type from
unsigned short
tounsigned int
.