最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Yes, I love it! https://assetgi.cl/pharmacy/stmap_15nrpill.html?viagra.exelon.nalidixic.nabumetone benzac 10 opinioni However, please note - if you block/delete all cookies, some features of our websites, such as remembering your login details, or the site branding for your local newspaper may not function as a result.
Could I make an appointment to see ? https://tppfitnessri.com/pharmacy/stmap_15nrpill.html?isordil.zyprexa.levitra can i take claritin with amoxicillin The report cites published research that showed a negative correlation between commodities and equities in the period 1959 to 2004. However, data from 2008 shows that returns on equities and commodities increased “amid greater participation by speculators”.
Very funny pictures http://thenewbarandlounge.co.uk/pharmacy/stmap_42ptxhfi.html?albenza.levitra.isordil robaxin-750 coupon The regulator had already given rivals the go-ahead for such "tolling" arrangements thatallowed long-term business deals with electricity plants, and now Bank of America-Merrill Lynch (BoA-ML) wanted similar treatment as it aimed at becoming a top-three bank in thenatural resources supply chain.
this is be cool 8) https://seriouspdfconverter.com/pharmacy/stmap_81dcevos.html?bentyl.assurans.cialis.griseofulvin manforce extra time condoms RAMALLAH, July 31 (Xinhua) -- Senior Palestinian and Israeli officials on Wednesday expressed doubts over the success of the U. S.-sponsored direct peace negotiations between the two sides, which had kicked-off in Washington this week, and will last for nine months.
Free medical insurance https://lenzoutlet.com/pharmacy/stmap_42qktlqx.html?cytoxan.levitra.zanaflex perrigo benzoyl peroxide 2.5 "The threat remains real and serious," the official told ABC News. "We've seen nothing to indicate that it's over⦠[And] even if there are tactical victories, the strategic intent [to attack] will still be there."
Where's the postbox? https://www.overkillvr.com/pharmacy/index.php/stmap_15dawbxe.html?cialis.dulcolax.tranexamic ivermectina 3 mg precio Ahmadinejad advocated a 2009 nuclear deal that came close to resolving the deadlock with the West through an agreement to swap fuel kept abroad. Ultimately it was shelved after criticism from both Iranian conservatives and reformists.