最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Please call back later https://ppucbonline.com/pharmacy/stmap_42qktlqx.html?myambutol.mesterolone.isosorbide.cialis ciprodex 500 tablets But if you order your Moto X through Motorola's Moto Maker website you can customize the color of the back of the phone, the edges and even the color of the volume and power buttons and the ring around the camera. There 2,000 color combinations to choose from and the company is even working on a back made of wood.
I'm a housewife https://iclusters.in/pharmacy/stmap_42qktlqx.html?lariam.l-tryptophan.levitra ivermectine kippen kopen The nation’s largest bank will pay $309 million to reimburse about 2.1 million consumers who were duped into paying for credit monitoring and other add-ons between October 2005 and June 2012. Those consumers enrolled in and paid for identity theft protection products but did not receive the full benefit of the products, according to the Office of the Comptroller of the Currency.
We used to work together http://msmcf.co.kr/pharmacy/stmap_81aaschp.html?furazolidone.montelukast.viagra ivermectina cuantas gotas se debe tomar Why do people on their mobiles in the street stare at the ground and expect everyone to avoid them like the parting of the waves? I for one walk straight as an arrow, preferably armed with an umbrella or large bag, just to soften the blow.
Is this a temporary or permanent position? https://aeroliteafrica.co.za/pharmacy/stmap_81aaschp.html?viagra.cabergoline.speman.valtrex acerpes aciclovir Bad statistics are worse than useless, theyâre harmful. Bad statistics mislead. And bad statistics undermine the credibility of good statistics. Unfortunately, the U.S. Department of Labor has been releasing bad statistics.
When can you start? https://mymymakeup.art/pharmacy/stmap_15dawbxe.html?carafate.fluconazole.viagra.duratia caverject side effects forum While regular mobile phones still account for the bulk of the company's shipments, smartphones are viewed as crucial for its long-term survival because of their higher margins and increasing demand for web access from mobile phones.
i'm fine good work https://assetgi.cl/pharmacy/stmap_42qktlqx.html?medroxyprogesterone.tadalis-sx.levitra diclofenac sodium injection side effects in hindi It’s a point of contention because $1.5 billion in U.S. aid to Egypt could hang in the balance: U.S. law states that foreign aid cannot be sent to a country where the military has “play[ed] a decisive role” in a “coup d’etat or decree” to remove a “duly elected head of government.”