狗和什么属相最配| 精液少是什么原因| 腋下疼痛是什么原因| 一个家庭最重要的是什么| 爬灰什么意思| 梦见一个人说明什么| 粉荷花的花语是什么| 男孩过生日送什么礼物好| 草莓是什么植物| 脑梗是什么原因造成的| 三叶香是什么菜| 小姨是什么| 草是什么颜色的| 岁月蹉跎是什么意思| 儿童舌系带短挂什么科| 睡觉睁眼睛是什么原因| 太形象了是什么意思| 膀胱癌有什么症状| 吃藕粉对身体有什么好处| 尿隐血阴性是什么意思| 耳鸣是什么| 血糖为什么会高| 狮子男和什么星座最配| 什么叫智齿牙| r0lex是什么牌子手表| 怀孕一个月有什么反应| 负荆请罪是什么意思| 倾情是什么意思| 过氧化氢一个加号什么意思| wrangler是什么牌子| 小孩尿味道很重是什么原因| 手抖是什么原因造成的| 五行什么生水| 驻村是什么意思| 惊奇地什么| sin是什么边比什么边| 左传是一部什么体史书| 二月十七是什么星座| 春天穿什么衣服| 蚊子不喜欢什么味道| 果胶是什么| 梦见和妈妈吵架是什么意思| 低血钾吃什么补上来的快| 急性上呼吸道感染吃什么药| 释怀和释然有什么区别| 龙生九子都叫什么名字| 喝什么可以美白| 肝叶钙化灶是什么意思| 心口痛挂什么科| 酸奶能做什么美食| 补办户口本需要什么材料| 气胸挂什么科| 诸葛亮是一个什么样的人| 樱桃泡酒有什么功效| 什么是转述句| 做梦梦见鱼是什么意思| apc是什么牌子| 令瓦念什么| 新生儿屁多是什么原因| yp什么意思| 暄字五行属什么| 什么叫支原体感染| 日晡潮热是什么意思| 看腋臭挂什么科| 苦瓜不能和什么一起吃| 大便白色是什么原因| 得莫利是什么意思| 吃什么补血贫血| 为什么血压会高| 马超属什么生肖| 堃字的寓意是什么意思| 中元节注意什么| 埃及艳后叫什么| 什么茶是绿茶| 猫吃什么食物除了猫粮| 月破是什么意思| 测尿酸挂什么科| 啤酒为什么是苦的| sku是什么意思| 开心的动物是什么生肖| 喝中药不能吃什么东西| 嘴唇干是什么原因引起的| 养兰花用什么土最好| 汗疱疹是什么原因引起| sry什么意思| 口腔溃疡看什么科| 叶酸有什么好处| 五台山是求什么的| 月经推迟是什么原因导致的| 子宫内膜异位是什么原因造成的| 打乙肝疫苗挂什么科| 饭前吃药和饭后吃药有什么区别| 舌苔厚腻吃什么中成药| 10000是什么电话| 书五行属性是什么| 黑曜石属于五行属什么| 减肥吃什么药好| 身份证拍照穿什么衣服| 想留不能留才最寂寞是什么歌| 贪吃的动物是什么生肖| 海凉粉是什么做的| 什么情况下需要安装心脏起搏器| 男人吃什么能延时| 纷至沓来什么意思| 脊灰疫苗是预防什么的| 什么样的情况下会怀孕| 看手指甲挂什么科室| 肾湿热吃什么中成药| 芒果不能和什么一起吃| 气血亏吃什么补的快| 吃了螃蟹后不能吃什么| 什么时候测血压最准确| 小腿出汗是什么原因| cg是什么意思| 小便尿道刺痛吃什么药| rag什么意思| 什么叫疝气| 什么是耦合| 38岁属什么的生肖| 钾低是什么原因引起的| 道德绑架是什么意思| 胃病看什么科室| 肾阳虚喝什么泡水最好| 面色少华是什么意思| 维生素c吃多了有什么危害| 草字头弓读什么字| 小孩病毒感染吃什么药| 什么食物含铅| 烟火气息是什么意思| 莘莘学子什么意思| 喝酒前喝什么不容易醉又不伤胃| spf50是什么意思| 突然流鼻血是什么征兆| ala是什么意思| pass是什么意思| 145什么意思| 有什么水果| 石榴石一般什么价位| 身上没力气没劲是什么原因| 听吧新征程号角吹响是什么歌| 羊肉馅饺子配什么菜好| 什么是国企| 游车河什么意思| 劳损是什么意思| 明星每天都吃什么| 白天不懂夜的黑什么意思| 莼菜是什么菜| 洗劫一空是什么意思| 鱼非念什么| 褙子是什么| b2是什么| 142是什么意思| 脑囊肿是什么病严重吗| 什么饮料好喝| 国师是什么意思| 头顶冒汗是什么原因| 苦瓜泡水喝有什么功效和作用| 麦芽糖是什么糖| 愚公移山是什么意思| 结核菌是什么| 忽然流鼻血是什么原因引起的| Years什么意思| 2023年属兔的是什么命| 宫寒是什么原因引起的| 猫肉什么味道| 榴莲有什么品种| 痔疮是什么样的图片| 老汉是什么意思| 泰斗是什么意思| 什么马没有腿| 肚子咕噜响是什么原因| 肾五行属什么| 有头皮屑用什么洗发水| 什么是原生家庭| 幡然醒悟是什么意思| 自然周是什么意思| 艾灸痒痒的是什么原因| 不孕不育有什么症状女| 怕空调冷风什么原因| 头发为什么长不长| 猫咪喜欢什么颜色| 老而弥坚是什么意思| 行尸走肉什么意思| 贵州有什么| 怀孕初期流产有什么症状| 柠檬不能和什么一起吃| 乳腺囊肿和乳腺结节有什么区别| 刺激性干咳是什么症状| 磨牙吃什么药能治好| 四大发明有什么| 什么眉头| 趴着睡觉有什么坏处| 拉拉裤后面的胶片是做什么用的| 老想睡觉是什么原因| 肛瘘是什么情况| 藿香正气水是什么| 口什么舌什么| 近亲为什么不能结婚| 三个手念什么| 疱疹用什么药好得快| 为什么喝水血糖也会高| 蚂蚁代表什么生肖| 什么蓝牙耳机好| 相安无事是什么意思| 沧州有什么好玩的地方| 吃海带有什么好处| cybex是什么牌子| 红玫瑰的花语是什么| 麻是什么原因| 伊始是什么意思| 披靡是什么意思| 梦到挖坟墓是什么意思| 天庭饱满是什么意思| 真丝用什么洗| 呼吸内镜检查什么| 7月28日是什么星座| 梦见自己大肚子怀孕是什么意思| slc是什么意思| 青海古代叫什么| 小姑娘月经推迟不来什么原因| 水满则溢月盈则亏是什么意思| 儿童咳嗽吃什么药| ige是什么意思| 9月24号是什么星座| 白痰多是什么原因造成的| 运六月有什么说法| 女流之辈是什么意思| 1984年是什么命| 白醋和小苏打一起用起什么效果| 嘛是什么意思| 关节痛去医院挂什么科| 形而下是什么意思| 青黛色是什么颜色| 69是什么意思| 十二生肖本领强是什么生肖| 桔色搭配什么颜色好看| 田七蒸瘦肉有什么功效| 肚子为什么会胀气| 百香果有什么作用| 什么长| 肝硬化吃什么好| 主导是什么意思| 丑未相冲的结果是什么| 辛是什么意思| 如意丹的作用是什么| 小孩肚子疼拉肚子吃什么药| 姜文和姜武是什么关系| glu是什么氨基酸| 发烧了吃什么食物好| 飞机联程票是什么意思| 狐媚子是什么意思| 天池为什么没有鱼| hsv病毒是什么意思| 凌志和雷克萨斯有什么区别| 半夜醒来睡不着是什么原因| 梦见自己有孩子了是什么预兆| 纯度是什么意思| 丑时是什么时候| 两腿抽筋是什么原因| 睡眠不好去医院看什么科| mc是什么意思啊| 龙头凤尾是什么生肖| 舌强语謇是什么意思| 6月17号什么星座| 百度
Skip to content

Updated tests to detect BarcodeFormat & Barcode data #219

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maheshdev305
Copy link

The existing tests was just reporting the Decoded barcode data alone.
So, updating the tests to Decode barcode data as well as the Barcode Type/Format(i.e. QR_CODE , CODE_128 and so on)

maheshdev305 pushed a commit to maheshdev305/qzxing-test-resources that referenced this pull request Jun 2, 2022
@maheshdev305
Copy link
Author

Updated resources for this tests. So the resources PR-1 needs to be merged as well.

@ftylitak
Copy link
Owner

ftylitak commented Jun 26, 2022

Hello @maheshdev305,

i have two comments:

  • In Qt 5.x it compiles successfully though for in Qt 6 it has compilation errors. Could you check them?
  • The test results (success rate) is far off the previous results. Do you know the reason?
    • Using the old test mechanism: Total: [ 1110 ] , successful: [ 851 ] , failed: [ 237 ]
    • Using your solution : Total: [ 1192 ] , successful: [ 371 ] , failed: [ 821 ]

@maheshdev305
Copy link
Author

@ftylitak

Hello @maheshdev305,

i have two comments:

  • In Qt 5.x it compiles successfully though for in Qt 6 it has compilation errors. Could you check them?

Qt6 compilation errors are present without this PR changes as well. Please check from your side as well.

  • The test results (success rate) is far off the previous results. Do you know the reason?

    • Using the old test mechanism: Total: [ 1110 ] , successful: [ 851 ] , failed: [ 237 ]
    • Using your solution : Total: [ 1192 ] , successful: [ 371 ] , failed: [ 821 ]

Not sure why it was a huge difference at your side. Below is the result counts from my machine.

Total Files :  1192
Decode Success count :  807
Decode Failure count :  385

Attached below is the complete output from my machine. Please do review and let me know.

NewTestResults.txt

@ftylitak
Copy link
Owner

ftylitak commented Jul 11, 2022

a) regarding the compilation errors, I was facing them when building for Qt 6.0. When compiling with Qt 6.2 it was successful.

b) the reason why I am getting low success rate in the tests is because in both Ubuntu and Windows that I have tested, around 500 of the images can not be read for some reason. This resulted the QImage.isNull to be true after this line:

QImage tmpImage = QImage(imageUrl.toLocalFile());
.

Strange enough, the previous implementation of the tests work fine. So, this is the reason why this PR is not yet merged.

I gave it a try though I wasn't able to understand why this happens. Now, since this PR regards the tests and not the core library, I will consider it low priority. This means that even though I am interested in merging it, I currently do not have time to debug why I get this strange behavior of the Null images. If anyone has any suggestion, I would be more than willing to test it ASAP.

@maheshdev305
Copy link
Author

maheshdev305 commented Jul 20, 2022

b) the reason why I am getting low success rate in the tests is because in both Ubuntu and Windows that I have tested, around 500 of the images can not be read for some reason. This resulted the QImage.isNull to be true after this line:

QImage tmpImage = QImage(imageUrl.toLocalFile());

.
Strange enough, the previous implementation of the tests work fine. So, this is the reason why this PR is not yet merged.

I gave it a try though I wasn't able to understand why this happens. Now, since this PR regards the tests and not the core library, I will consider it low priority. This means that even though I am interested in merging it, I currently do not have time to debug why I get this strange behavior of the Null images. If anyone has any suggestion, I would be more than willing to test it ASAP.

Below are my observations...

  • Qt Documentation of QUrl::toLocalFile() says that

    Note: if the path component of this URL contains a non-UTF-8 binary sequence (such as %80), the behaviour of this function is undefined.

    So, Could you validate the file path and check?

  • and below code strips the file:// string in the given path twice!

    qzxing/src/QZXing.cpp

    Lines 574 to 578 in 6ea2b31

    const QString header = "file://";
    QString filePath = imageFilePath;
    if(imageFilePath.startsWith(header))
    filePath = imageFilePath.right(imageFilePath.size() - header.size());

    Below lines adds the file:// string & strips again.

    qzxing/src/QZXing.cpp

    Lines 580 to 581 in 6ea2b31

    QUrl imageUrl = QUrl::fromLocalFile(filePath);
    QImage tmpImage = QImage(imageUrl.toLocalFile());

Also, requesting you to consider this as a little higher priority and let me know the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
做梦抓到很多鱼是什么征兆 男性肾虚有什么症状 盆腔少量积液什么意思 手足癣用什么药最好 心脏无力吃什么药最好
假体隆胸什么材料好 人体左边肋骨下疼是什么原因 果皮属于什么垃圾 海鲜中毒有什么反应 白细胞低吃什么药可以增加白细胞
吃什么去肝火见效快 多吃黄瓜有什么好处和坏处 腰上有痣代表什么 甲状腺低是什么意思 神经衰弱吃什么中成药
能说会道是什么生肖 可谓是什么意思 柳仙是什么仙 钉钉是什么 口腔医学技术是什么
舌苔白厚吃什么药见效快hcv8jop9ns9r.cn 老丈人是什么意思naasee.com 什么补钾最快hcv7jop7ns3r.cn 外科检查一般检查什么hcv9jop4ns6r.cn 为什么湿气重hcv9jop2ns4r.cn
张国立的老婆叫什么名字hcv9jop6ns7r.cn 9月25日是什么星座hcv8jop6ns0r.cn 限期使用日期是什么意思travellingsim.com 亮油什么时候涂sanhestory.com 吃什么东西养胃hcv8jop2ns2r.cn
马齿苋长什么样子hcv9jop8ns2r.cn 吃什么不会便秘jasonfriends.com 亢进是什么意思hcv8jop8ns4r.cn 暗示是什么意思hcv7jop9ns4r.cn 翡翠对人体有什么好处hcv8jop0ns9r.cn
带翅膀的黑蚂蚁是什么hcv8jop4ns2r.cn 什么是穴位hcv8jop4ns5r.cn 齁不住是什么意思hcv8jop9ns7r.cn 尼日利亚说什么语言hcv9jop1ns4r.cn 吞咽困难是什么原因hcv7jop7ns0r.cn
百度