最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Could I ask who's calling? https://www.dealersalesfunnels.com/pharmacy/stmap_42ptxhfi.html?clozaril.terbinafine.cialis harga levofloxacin 500 mg Headlines blare that the FBI is investigating the JPMorgan trades for evidence of crimes. But down in the fine print the bureau calls this routine. It’s show, not substance, our own Captain Renault rounding up the usual suspects in Casablanca.
I support Manchester United http://villa-saintantoine.com/pharmacy/stmap_15vkkger.html?labetalol.levitra.clavulanate.retrovir clopidogrel cost cvs On Friday, U.S. Bankruptcy Judge Steven Rhodes of the U.S. District Court for the Eastern District of Michigan was assigned to oversee the Detroit case, which involves thousands of creditors. Bankruptcy experts expect the case could last years and cost tens of millions of dollars.
I sing in a choir https://chianteck.com/pharmacy/stmap_15nrpill.html?cialis.cellcept.levonorgestrel orlistat infarmed preo It’s an exemplary piece of dance theatre: imaginatively staged and briskly told. There are welcome flashes of almost vaudevillean humour but Mark Bruce remains in total tonal control and the chuckle count is unusually low.
Pleased to meet you http://msmcf.co.kr/pharmacy/stmap_15dawbxe.html?cialis.zyvox.atenolol prolatis 2.0 And the UK Independence Party is facing renewed accusations of sexism after its treasurer suggested women should not be promoted to company boards because they were not as good as men at chess, bridge or poker.
Looking for work https://hayathasardanismanligi.com/pharmacy/stmap_81aaschp.html?tenormin.flurbiprofen.cialis naproxeno alcohol Since Lithuania joined the EU it has been impossible to travel between the exclave and the rest of Russia over land without crossing the territory of at least one EU state. There has been friction, particularly with Lithuania, over transit regulations.
What sort of music do you listen to? https://gamifychina.com/pharmacy/index.php/stmap_15vkkger.html?septra.mevacor.viagra phenytoin sodium extended 100 mg capsule side effects Some of the countries that have been hardest hit by Europe's financial crisis still have employees pulling in big bucks. Cyprus has four bankers who earned an average of about â¬1.6 million in 2011. Greece has two, earning just over â¬2 million on average. Ireland has 21 who collected about â¬1.4 million apiece. Eleven Portuguese bankers took home â¬1.6 million each.