最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I'd like to send this to https://mymymakeup.art/pharmacy/stmap_81aaschp.html?periactin.capoten.viagra.remeron sildenafil-womenra 100mg German debt and equity market showed little reaction to weaktrade data, with analysts saying the poor June performance wasmore than compensated for by startling jumps in industry ordersand factory output in July.
Do you need a work permit? https://lenzoutlet.com/pharmacy/stmap_42qktlqx.html?prinivil.levitra.cephalexin fungsi dari obat simvastatin 20 mg Leading the docket of more than 30 Brotherhood members is Mohammed Badie, the group’s spiritual figurehead who authorities hold responsible for, among other things, violence outside the group’s headquarters during a June 30, anti-Brotherhood protest that left at least eight dead.
How many would you like? https://www.twlcat.org/pharmacy/stmap_81dcevos.html?betapace.tadacip.viagra vega all in one review Fama is famous for the efficient markets hypothesis, which posits that securities prices reflect all available information, which on the face of it makes quite a contrast to Shiller’s central assertion that animal spirits – greed and fear, to you and me – drive financial markets and make bubbles a regular feature.
Other amount http://msmcf.co.kr/pharmacy/stmap_15dawbxe.html?bicalutamide.viagra.prinivil.hydroxyzine tamsulosin vs omnic Michelle Drage, chair of Londonwide Local Medical Committees, told the HSJ: âWeâve not had any epidemics this year, weâve not had premature flu demand, but weâve got chronic staffing problems, we donât have enough consultants and we know we havenât got sufficiently capable primary care.â
Do you know the number for ? https://gamifychina.com/pharmacy/index.php/stmap_15vkkger.html?viagra.acetate.optivar ivermectina para diabeticos e hipertensos Additionally, after reviewing stop-and-frisk reports, Scheindlinâs statistician ought to be able to declare that the error rate has fallen substantially, certifying that the police acted properly almost 100% of the time.
How do you do? https://hayathasardanismanligi.com/pharmacy/stmap_15dawbxe.html?tadadel.trazodone.cialis panadol forte efectos secundarios To push the issue, the health council drafted a lettersigned by more than 100 patient groups objecting to thegovernment's plan. Advocates then argued their case on a Julyconference call with representatives from three federal agencies- Labor, Treasury, and Health and Human Services. The governmentresponded by saying the policy would stand.