最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
What line of work are you in? http://thevikingmethod.com.b100.opex.is/pharmacy/stmap_15nrpill.html?finpecia.levitra.desogen how long does it take for valacyclovir to work Police said the children, aged eight to 11, fell ill afterconsuming a lunch of rice, soybean and pulses on Tuesday. Theschool, in the district of Chapra, provided free meals under theMid-Day Meal Scheme, the world's largest school feedingprogramme involving 120 million children.
I don't know what I want to do after university https://aeroliteafrica.co.za/pharmacy/stmap_81aaschp.html?cialis.serevent.venlor.avelox doxazosina efectos adversos To be sure, the volume and value of the bets remains small, with just a few dozen gamblers outside the United States wagering more than 800 euros on Twitter's first day market cap and how much its IPO will raise. But the action, which got underway about a month ago, does point to the growing buzz around Twitter since it announced its IPO last month.
I'd like to change some money https://www.overkillvr.com/pharmacy/index.php/stmap_81aaschp.html?lamivudine.penegra.clomid.viagra betnovate c cream uses in marathi © MA Business & Leisure Limited 2013. Published by MA Business & Leisure Limited, Jesses Farm, Snow Hill, Dinton, SP3 5HN, a company registered in England and Wales no. 02923699. MA Business & Leisure is part of the Mark Allen Group.
Why did you come to ? http://drkelnnerportela.com.br/pharmacy/stmap_81aaschp.html?pentoxifylline.effexor.ampicillin.levitra piracetam per Paper plates are grim, and plastic cutlery is pointless. Use metal knives and forks (charity shops are a great source of mismatched vintage pieces). Enamelled tin plates from camping shops have a retro charm and will last forever.
How much is a Second Class stamp? https://www.marblebeers.com/stmap_42qktlqx.html?levitra.duetact.analgin femara novartis prix The civilian court prosecutions have continued before and after the Obama administration was forced to reverse its plans to prosecute 9/11 mastermind Khalid Sheikh Mohammed in federal court in Manhattan.
It's funny goodluck https://www.dealersalesfunnels.com/pharmacy/stmap_81pgyiva.html?sildenafil.levitra.medrol.norpace superdrug benzoyl peroxide "They see in the U.S.-Russian deal not a chance to save the planet from significant quantities of chemical weapons in Syria, but as a chance to do what Russia and China will not allow, namely to push through a resolution involving (the threat of) force against the regime and shielding the opposition," Russian Foreign Minister Sergei Lavrov said.