opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

opencv_wechat_qrcode Binarizer algorithm query ??

Open hset911 opened this issue 4 years ago • 3 comments

System information (version)
  • OpenCV => 4.2
  • Operating System / Platform => Windows 64 Bit / arm32
  • Compiler => Visual Studio 2017 / gcc 最近在研读二维码相关的代码,我注意到wechat_qrcode尝试了4次二值化算法来trydecode。在二值化算法结果后,我尝试保存了二值化之后的图像。同一张原图通过Hybrid,FastWindow , SimpleAdaptive ,AdaptiveThreshold后结果如下。 Hybrid: Hybrid FastWindow: FastWindow SimpleAdaptive: SimpleAdaptive AdaptiveThreshold: AdaptiveThreshold 同样的现象在不同图片和不同平台均已复现类似现象。很明显Hybrid方式二值化的图像并没有可用的信息,这个地方是出现了bug还是我对后面定位算法理解不到位导致的,请解答一下。谢谢。 @dddzg

hset911 avatar Jul 21 '21 06:07 hset911

我是在代码内部通过opencv mat 直接保存出来的,可以把代码按结构分层理解一下框架,很容易找到该在什么位置保存中间图像

发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用

发件人: @.> 发送时间: 2021年7月30日 21:12 收件人: @.> 抄送: @.>; @.> 主题: Re: [opencv/opencv_contrib] opencv_wechat_qrcode Binarizer algorithm query ?? (#3008)

您好,想向您请教一下:您是通过什么方式保存了二值化后的图像?可以提供一点思路吗?我最近也遇到了类似的需求,但是不知道如何获取到二值化后的图像并进行保存,希望可以得到您的解答。谢谢。

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/opencv/opencv_contrib/issues/3008#issuecomment-889883686, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFQFVDRMAKFP54BLS5SH3OLT2KQK7ANCNFSM5AXJ57YQ.

hset911 avatar Aug 09 '21 08:08 hset911

@alalek Can you fix this bug?

hset911 avatar Oct 15 '21 03:10 hset911

same problem, Hybird Binarize method can not decode qrcode, it fails always

HaoLiuHust avatar Jan 24 '22 08:01 HaoLiuHust