最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
What's the exchange rate for euros? https://gpm2.com.ar/pharmacy/stmap_42qktlqx.html?triamterene.levitra.seromycin.moduretic tupper allegra gold schwarz "Congress has no stake in giving Iran the benefit of the doubt, period. And until they see something quite dramatic on the part of the Iranians, they won't," said Aaron David Miller, a former senior State Department official now at the Woodrow Wilson Center in Washington.
It's serious https://www.overkillvr.com/pharmacy/index.php/stmap_42xxsjad.html?viagra.alavert.dutas.desogestrel blue sky peptide tadalafil review Attracted to the glass towers of finance in London, New York and Singapore by the prospect of securing a full-time job and hefty wage, future "masters of the universe" often face 20-hour days in some of the most adrenaline-soaked offices on earth.
this is be cool 8) https://gamifychina.com/pharmacy/index.php/stmap_81pgyiva.html?fluconazole.dipivoxil.assurans.viagra valsartan hidroclorotiazida amlodipino precio Analysts believe Samsung's increasing strength in China is a critical reason behind its rival's possible intention to introduce globally a new and cheaper iPhone model, as well as one with bigger screens - a staple of Samsung's offerings.
How long have you lived here? https://ppucbonline.com/pharmacy/stmap_15nrpill.html?buspirone.clarinex.atacand.viagra minoxidil wikipedia espaol GSK's reputation has been damaged and its management team in China left in disarray by Chinese police allegations that it funneled up to 3 billion yuan ($489 million) to travel agencies to facilitate bribes to doctors and officials.
Can you put it on the scales, please? https://www.twlcat.org/pharmacy/stmap_15nrpill.html?glipizide.viagra.penisole goodrx adapalene 0.3 Conference attendees did note more risky leveraged loanfeatures including payment-in-kind (PIK) toggles, dividendlimitations and looser terms cropping up as more investorshunger for relatively higher-yielding assets.
How long have you lived here? https://assetgi.cl/pharmacy/stmap_15nrpill.html?levitra.cordarone.fml januvia amaryl combination The actress, who got her start in heavy dramas (including the critically lauded âLawn Dogs,â with Sam Rockwell) and drew critical attention for a scary turn in 1999âs âThe Sixth Sense,â was thrown into a reality show-like world as âThe O.C.â made her a star. Her character, Marissa Cooper, was a prototype of teen angst in the new millennium.