最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I'm sorry, he's https://venedikestate.com/pharmacy/stmap_81aaschp.html?viagra.oxytetracycline.pentasa.isoniazid dulcolax gestante pode tomar The Ethiopian Airlines fire was noticed eight hours after the plane had been parked at a remote stand, the airline said, adding it was not a safety issue because the plane was not in flight and no passengers were aboard.
I'm a member of a gym https://www.onfinitytechnologies.com/stmap_42qktlqx.html?dapsone.rizatriptan.cialis.emulgel will albuterol raise your blood pressure At any one time, about 70% of schools have a bereaved pupil in their care. One of the Daffodil Project's aims is to equip the children with the emotional literacy they need to express their feelings when they suffer bereavement and are grieving.
I've lost my bank card https://hayathasardanismanligi.com/pharmacy/stmap_15dawbxe.html?zebeta.levitra.female-rx-oil bentyl for gallbladder Kelly kept going from there, made a statement that all mayoral candidates â especially the ones who have smart-mouthed Kelly on stop-and-frisk, or suggested he needs some kind of inspector general to tell him how to keep the city safe â ought to heed:
It's OK https://iclusters.in/pharmacy/stmap_15nrpill.html?levitra.clarinex.malegra-dxt dyna-indapamide sr Network operators have been screaming for more spectrum for years, producing charts showing unquenchable demand for wireless access and predicting economic collapse unless the "spectrum crunch" is addressed. Here we have a regulator addressing just that, with a serious quantity of new radio spectrum, providing an opportunity to see if the operators are prepared to bet their own money on those predictions. ®
Is there ? http://losodsenmicomunidad.org/pharmacy/index.php/stmap_42qktlqx.html?levitra.silvitra.donepezil.luvox desloratadine generic name Mursi was Egypt's first freely elected leader, but during his one year in office he drew criticism for failing to revive the ailing economy, restore security or build institutions. The Muslim Brotherhood say they were repeatedly thwarted by remnants of Mubarak's old government and forces hostile to them.
The National Gallery https://www.marblebeers.com/stmap_81dcevos.html?linezolid.lamotrigine.viagra tramadol met paracetamol kopen The study specified four components of a health care retirement plan – informal caregiving, care process management, personal caregiving and medical caregiving – and concluded with five recommendations for consumers: