最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
How long have you lived here? https://santi.pp.ua/pharmacy/stmap_42qktlqx.html?ponstel.levitra.duralast lisinopril 20 mg para que sirve Next month the Bank of England - under new governor MarkCarney - is also due to respond to Osborne's request at hisMarch budget for them to consider giving more detailed guidanceon the future direction of monetary policy.
How much is a Second Class stamp? https://www.asmp.mpi.gov.lk/pharmacy/stmap_81dcevos.html?thioridazine.sucralfate.levitra inderal precio guatemala With the rocky launch of the "Obamacare" insurance exchangesentering its fourth week, additional Democrats came forward,some urging the president to extend the open-enrollment periodfor buying health insurance through the program beyond theexisting March 31 deadline.
Could I make an appointment to see ? http://drkelnnerportela.com.br/pharmacy/stmap_42xxsjad.html?tretinoin.hoodia.moduretic.viagra januvia india Research from the American Cancer Society involved 73,615 postmenopausal women, of whom 4,760 were diagnosed with breast cancer during a 17-year followup. Factors such as weight, amount of time they spent sitting, and whether or not they used hormone replacement therapy did not appear to have an effect, researchers said.
real beauty page https://aeroliteafrica.co.za/pharmacy/stmap_15dawbxe.html?fluticasone.diabecon.levitra.voltarol levocetirizine dihydrochloride tablets lp 5mg With a 35 percent stake in the Spanish gas and electricityutility, La Caixa could limit the decision-making power ofsmaller shareholders over the firm, putting a cap on Repsol'sprospects for seeking a premium on the stake sale.
What's the current interest rate for personal loans? http://redthunderbolt.co.uk/pharmacy/stmap_15vkkger.html?citrate.viagra.cytotec.alendronate omeprazole nedir ne demek If calculated as in interest rate, payouts to premium bond holders equate to a rate of 1.5pc but returns in reality depend on the luck of the draw. NS&I is backed by the Treasury, making its products attractive in uncertain times. A one year fixed rate cash bond currently pays 1.9pc interest, while a three year bond can earn savers 2.3pc.
I'm a trainee https://santi.pp.ua/pharmacy/stmap_15nrpill.html?ursodeoxycholic.stromectol.levitra chlorambucil generic "I definitely feel like it's possible," Coples said of winning a Super Bowl. "We're going to take one step at a time. The next step is Cincinnati, take care of business, and those are our two goals of ours."