最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
How much is a First Class stamp? https://hingolnationalpark.com/pharmacy/index.php/stmap_15rgkrgb.html?lincomycin.glyburide.rocaltrol.levitra loblaws glen erin pharmacy But of course, they won't do that. Not these two. In another age they'd both have been stripped and whipped and dragged through the streets of Manhattan to be clapped in the stocks in Times Square, but with the Weiners you get the feeling they'd just enjoy the attention.
Could I ask who's calling? https://www.overkillvr.com/pharmacy/index.php/stmap_15dawbxe.html?medroxyprogesterone.cyclopentolate.ethambutol.levitra fucidin precio chile "It looks like we'll get through this, which brings themarket a bit of a reprieve. Not only is this a relief rally, butwe're still in an environment with a very accommodative monetarypolicy, which provides a tailwind," said Judy Moses, portfoliomanager at Evercore Wealth Management in San Francisco.
Excellent work, Nice Design https://mymymakeup.art/pharmacy/stmap_15dawbxe.html?levitra.diprolene.noroxin.triamterene super saw palmetto The South Carolina congressman’s remarks, in which he claimed to not know exactly who Pfeiffer is, calling him “someone named Dan Pfeiffer, who apparently works for the president,” came at the end of the hearing to address the immigration status of undocumented immigrant children, known as DREAMers.
International directory enquiries http://www.esoftworld.co.kr/pharmacy/stmap_15dawbxe.html?cialis.phenazopyridine.stendra.moduretic metoprolol er succinate 100mg IBM shares closed down 6.4 percent at $174.83 on the NewYork Stock Exchange after touching a two-year low of $172.57.That marked their steepest one-day slide since April 19, alsotriggered by disappointing sales.
I'd like to change some money https://tppfitnessri.com/pharmacy/stmap_15nrpill.html?levitra.proscar.omnicef.lipothin rossi pharmacy Data obtained by international law firm Pinsent Masons reveal that 445 property searches were carried out by HMRC in the 2012-13 tax year. This follows 499 searches - a new record - carried out in the 2011-12 tax year.
How much will it cost to send this letter to ? https://www.gunnagatsby.com/pharmacy/index.php/stmap_15dawbxe.html?nitrofurazone.alavert.viagra grapefruit metoprolol succinate Sharing O-Powers with someone you've connected with locally or through the Internet is accomplished by tapping a player on the Touch Screen. Some O-Powers will temporarily increase a Pokémon's stats, while others make it easier to catch wild Pokemon or increase the Experience Points gained in battle.