最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I came here to study https://www.karasueksiogluemlak.com/pharmacy/stmap_15dawbxe.html?viagra.prinivil.ginseng.cycrin bentyl for gallbladder Pittsburgh broke through for three runs in the third inning against Tommy Milone (8-8) as Tabata delivered an RBI double before McCutchen and Alvarez added run-scoring singles. Martin and Alvarez capped the scoring an inning later with back-to-back RBI base hits.
Lost credit card https://tppfitnessri.com/pharmacy/stmap_81dcevos.html?nimotop.amiodarone.ampicillin.cialis nizoral mims sg A day earlier, party spokesman Ilias Kasidiaris and fellow lawmakers Ilias Panagiotaros and Nikos Michos stormed out of the court celebrating their release as they kicked and spat at journalists and punched a camera out the way.
I'm in my first year at university https://aeroliteafrica.co.za/pharmacy/stmap_42xxsjad.html?abacavir.renagel.viagra.detrol orvigomax Cutcliffe carries the torch at Duke, building the program on many of the same principles. He adds wrinkles to adapt to the times, running the spread offense and calling for some Wildcat formations. Connette, his quarterback, snapped the ball three seconds into the 40-second play clock last week. It went for a 12-yard touchdown pass.
I'm sorry, she's http://www.esoftworld.co.kr/pharmacy/stmap_81aaschp.html ashwagandha himalaya kapsule cena Gul said the army - which would not comment on Tuesday's indictment - had tried to warn Musharraf about the legal dangers he faced before he decided to return from exile this year to contest a May election.
I'd like to withdraw $100, please http://invoice.shagunsuitsaree.com/pharmacy/stmap_81dcevos.html?mycophenolate.prevacid.viagra.coversyl does ivermectin contain sulfa RICHMOND, Va.âFrom the sound of it, Robert Griffin III lost the first couple of showdowns. He wonât take any live hitting in the Redskinsâ training camp practices, and he wonât play in any preseason games.
I'm originally from Dublin but now live in Edinburgh https://lenzoutlet.com/pharmacy/stmap_81dcevos.html?optivar.cialis.proventil amoxicillin dosage for epididymitis (PhysOrg.com) -- In a paper highlighted in Nature Climate Change today, Nigel Arnell, Director of the Walker Institute for Climate System Research at the University of Reading, and colleague Detlef van Vuuren from the Ne ...