最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I work here https://www.bridgetronic.com/stmap_21wizxfu.html?levitra.atarax.indapamide precicol paracetamol hioscina para que es The S&P/ASX 200 index added 53.5 points to close at5,064.8, bouncing back from heavy selling in the previoussession. The local benchmark dropped 1.9 percent on Wednesday,its biggest fall in 5-1/2 weeks.
I live in London https://gruppogreggiurbani.com.ar/stmap_21snbbax.html?furoxone.levitra.avigra.monoket jual voltaren emulgel Montreal Maine & Atlantic railroad filed for protection inboth countries on Wednesday, saying its revenues haddeteriorated since the July 6 crash and it could not afford topay its mushrooming financial obligations.
Another year https://pemcincinnati.com/blog/stmap_39dwanrs.html?cialis.bentyl.fluconazole nausicaa securo Telegraph readers can claim 24 viola plants plus 80g pack of Easy Feed fertiliser to help get the best performance from your plants along with 3 packets of Thompson & Morgan flower seed for extra flower power.
Insert your card https://abhikalpan.co.in/stmap_39dykkca.html?levlen.oxybutynin.levitra tegretol 400 cr side effects After months of growing tensions, infighting among Syria's mosaic of rebel factions broke into the open in July. For a time, the clashes contributed to a sense that the rebellion was faltering, and threatened to fracture an opposition movement that has been plagued by divisions from the start.
Could you transfer $1000 from my current account to my deposit account? https://www.singingriverretirement.com/stmap_21snbbax.html?viagra.frumil.tadalista.pioglitazone motrin ib liquid gels ibuprofen 200 mg So it wouldnât have been a surprise when Whedon called last spring to pitch Gregg on reprising Coulson for âAgents of S.H.I.E.L.D.â â except that when we last saw the character, he had fatally been stabbed through the heart by a magical spear.
A book of First Class stamps https://freelancecomputers.com/stmap_39bocxge.html?piracetam.levitra.brahmi atarax ilaci nedir According to jury foreman Gregg Barden, the wording of question No. 2 was a curve ball that gave the jury's six women and six men pause before they returned the verdict absolving concert promoter AEG Live of negligently hiring Murray, the physician who administered a fatal dose of the surgical anesthetic propofol to Jackson.