-
Notifications
You must be signed in to change notification settings - Fork 5.8k
wechat_qrcode exception #2911
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
Comments
Please provide complete minimal reproducer including used flags and input image /cc @dddzg |
@alalek decode will be failed when detect output boundingbox is big enough, such as 1024x1024; |
Could you please try some images and check whether it only happens for the image with a big bounding box? |
I also have this problem, whether there is a solution or whether the reason has been found? thanks |
same issue... Has the latest version been resolved? |
I am not clear about how to reimplement this bug. |
I ran into a similar problem, and the stack of errors reported was almost the same |
When the boundingbox is too large, does the bug appear occasionally or must go wrong? |
My side is the daily scan code image that occasionally crashes. So far, I haven’t found the regularity of the crash image. |
崩溃标识 mach |
the same issue.. 在我的华为P20上用手半捂住摄像头扫描时比较容易出现 |
Use imwrite(.png) to save the last frame before crash. |
When the hand is not completely covered, the above errors will occasionally occur. it's strange, under the above circumstances, the QR code detection model will predict large bbox。 |
|
@dddzg |
@dddzg
and it will fall into an infinite loop:
|
PR is welcomed! Thanks a lot. |
it seem qrcode detector predict much false positive bbox. |
Yes, it is reasonable. Because we will try to decode each detected QRcode. |
@dddzg The accuracy of the detection model is not enough, which is result of your consideration that the recall rate is higher than the accuracy rate?
which branch i need to PR. |
From your custom new branch to OpenCV master branch. There are some examples that you can refer to: https://github.com/opencv/opencv_contrib/pulls?q=is%3Apr+is%3Aclosed+label%3A%22category%3A+wechat_qrcode%22 |
Does #2972 fix your crash? |
iphone unable to reimplement this bug when cover the camera with hand. |
Different mobile phone may not be able to reproduce the situation of covering the camera with your hand. |
System information (version)
Detailed description
qrcode decode image get a Segmentation Fault
received signal SIGSEGV, Segmentation fault. (double free or corruption (out))
#0 0x00005555555949db in zxing::UnicomBlock::Bfs(int, int) ()
#1 0x0000555555594b09 in zxing::UnicomBlock::GetUnicomBlockIndex(int, int) ()
#2 0x00005555555b684f in zxing::qrcode::FinderPatternFinder::find(zxing::DecodeHints const&, zxing::ErrorHandler&) ()
#3 0x00005555555a1fd3 in zxing::qrcode::Detector::detect(zxing::DecodeHints const&, zxing::ErrorHandler&) ()
#4 0x00005555555ba32d in zxing::qrcode::QRCodeReader::decodeMore(zxing::Refzxing::BinaryBitmap, zxing::Refzxing::BitMatrix, zxing::DecodeHints, zxing::ErrorHandler&) ()
#5 0x00005555555bc7a1 in zxing::qrcode::QRCodeReader::decode(zxing::Refzxing::BinaryBitmap, zxing::DecodeHints) ()
#6 0x00005555555797e4 in cv::wechat_qrcode::DecoderMgr::Decode(zxing::Refzxing::BinaryBitmap, zxing::DecodeHints) ()
#7 0x0000555555579984 in cv::wechat_qrcode::DecoderMgr::TryDecode(zxing::Refzxing::LuminanceSource, zxing::Refzxing::Result&) ()
#8 0x0000555555579e37 in cv::wechat_qrcode::DecoderMgr::decodeImage(cv::Mat, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&) ()
Steps to reproduce
Issue submission checklist
answers.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: