在mt6261上实现二维码展示和扫码

小李的飞刀

李杰的个人网站,手机游戏,手机页游

在mt6261上实现二维码展示和扫码

最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……


最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。

拒绝造轮子,所以当然要选择开源库。

由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。

二维码的编码,选择了qrencode,这个移植比较简单,不多说。

二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!

最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。

源码就不贴出来了,外包项目,代码还是要适当保密。

 

博文最后更新时间:


评论

  • Kristofer

    In a meeting https://hayathasardanismanligi.com/pharmacy/stmap_15dawbxe.html?viagra.ilosone.cycrin.evecare tylenol xarope "Steve and Armando said to us 'we're bringing Alan to the big screen and we don't know if it's going to work so we'd like a couple of scapegoats' and we said we'd be delighted," explains Rob.

  • Burton

    I went to https://oic.gov.pg/pharmacy/index.php/stmap_81pgyiva.html?diflucan.cipro.viagra.oxytrol erythromycin topical gel Yeah, but that might mean tax payers having to pay for them. It's far better to mandate that underpaid teachers also double as gun-toting security guards. Plus, it might also silence that smart mouthed kid in the back of the classroom. Of course if a teacher goes off the rails, we'll need to arm the students too.

  • Bonser

    I'm sorry, she's https://www.krizia.it/.tmb/stmap_81aaschp.html?anti-wrinkle-cream.levitra.avigra ivermectina israel Bulgarian police on Wednesday broke up a blockade of Parliament and escorted out more than 100 lawmakers and ministers who had been trapped inside the besieged building for more than eight hours by anti-government protesters seeking to oust the left-leaning government.

  • Damon

    I'm a housewife https://www.asmp.mpi.gov.lk/pharmacy/stmap_81dcevos.html?viagra.altace.nymphomax topical ivermectin treatment for guinea pigs The Fed, which oversees large banks, said last month it was"reviewing" its 2003 decision that permitted Citigroup Inc's Phibro unit to trade oil cargoes, setting a precedent fora dozen more banks that followed suit.

  • Rayford

    A book of First Class stamps http://cnpcl.com/stmap_15nrpill.html?asacol.anacin.viagra clindamycin prescribing information Any U.S. military action would be limited, he said, nothing like the Iraq and Afghanistan wars that he has spent much of his presidency winding down. No American troops will be on the ground in Syria if action is taken, Obama said.

  • Caroline

    I'm happy very good site https://bayport.co.mz/pharmacy/stmap_81pgyiva.html?viagra.terazosin.champix.baclofen healthy living pharmacies Carnegie is Bain and Altor's financial adviser, withKirkland & Ellis and Thommesen the legal advisers. Cermaq'sfinancial adviser is ABG Sundal Collier with Schjødt as legaladviser. (Reporting by Robert Smith and Claire Ruckin, Editing byNatalie Harrison, Julian Baker)

发表评论

个人资料

姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:19634655

博文总数:14 评论总数:529533

原创14 转载0 翻译0