最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Have you got any qualifications? http://losodsenmicomunidad.org/pharmacy/index.php/stmap_42qktlqx.html?fluoxetine.levitra.phexin zyrtec pregnancy category Evraz's suspension of work at the U.S. mill, which worked ataround 70 percent capacity in 2012, follows its decisions toidle its Italian plate mill and to sell its South AfricanHighveld mill and its Czech Vitkovice steel plant.
Just over two years https://www.marblebeers.com/stmap_42qktlqx.html?levitra.retrovir.bentyl.seroflo enalapril 1.25 âHeâs right,â said Kreider, who makes his season debut Thursday in Philadelphia. âI mean, obviously this isnât the position I wanted to be in. I was overthinking it (in the preseason). I was thinking about doing A, B and C instead of just doing A, kind of getting in (my) own way. But thatâs not an excuse. Iâve got to be mentally sharper, more cognizant of what I should be doing as a hockey player in the game. Itâs one thing to work hard; itâs another thing to work smart. So thatâs something Iâm focusing on and hopefully I can continue doing.â
Whereabouts in are you from? https://aeroliteafrica.co.za/pharmacy/stmap_42xxsjad.html?dilantin.vpxl.viagra.imuran allegra webmd Each FiLIP can register only up to five contacts and is able to whitelist undesired individuals from calling the device. FiLIP's red emergency button on the side of the watch allows the child to send a text message with a link to their location to the five contacts, record the ambient noise around the watch, and call the first contact on the device. The four other numbers will be called should the first not pick up, and if all five don't respond, FiLIP can be programmed to contact emergency services, which would make it a pain if it were accidentally pressed a bunch of times, though the child must hold down the button for three seconds for all this to happen.
I'm doing a phd in chemistry http://nautipar.com.br/pharmacy/stmap_81dcevos.html?viagra.nitrofurazone.clofazimine.tizanidine propecia 5mg Catherine Ashton, European Union High Representative for Foreign Affairs said: “It’s a new team. We’ve had the opportunity as I’ve already indicated, to talk in much greater detail than ever before, to answer each other’s questions.”
I'm in my first year at university http://cnpcl.com/stmap_42qktlqx.html?ovral.levitra.dexamethason manfaat salep zoter acyclovir Drs Straw and Williams described BCD as a "much more serious threat" because the "rate at which the disease has spread through the horse chestnut populations has shown no sign of slowing down in recent years, and it is still too early to say how many trees will be killed eventually and how many might survive".
I can't get a dialling tone http://nautipar.com.br/pharmacy/stmap_15nrpill.html?analgin.tri-cyclen.tadacip.levitra tylenol and ibuprofen dosing chart The Grand National meeting, where 66-1 outsider Auroras Encore won the big race, put a record £15m in the bookie’s coffers, while most punters lost their money gambling on Prince George. “The money was on a girl called Alexandra,” Mr Topping said. Reported pre-tax profits were £300,000 higher at £143.6m.