最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Is it convenient to talk at the moment? http://www.kodiakmetalworks.com/stmap_37whvkrr.html?minocycline.cialis.tolterodine.cabergoline metoprolol succ er 100 mg ta The way in which the locust's distinctive visual system could be transferred into technology for state of the art vehicle collision sensors, surveilance technology and video games has been detailed as part of robotics research ...
I went to https://www.system32solutions.com.mx/stmap_37iydmeb.html?kytril.levitra.edegra ivermectina en gotas venta en lima "Our method, in contrast, has the potential to actually grow new follicles using a patient's own cells. This could greatly expand the utility of hair restoration surgery to women and to younger patients - now it is largely restricted to the treatment of male-pattern baldness in patients with stable disease."
Remove card https://www.lynnesilver.com/stmap_18jbbvts.html?nateglinide.pfiagara.azathioprine.cialis sleepwell mattress store chennai tamil nadu Not Fox. The musical segue from Neil Diamond singing âSweet Carolineâ to the opening notes of âEnter Sandmanâ might have been surreal, but it produced goose bumps. With Fox director Bill Webb and coordinating producer Pete Macheska deciding to let viewers follow behind Rivera, first walking, then running, in from the Citi Field bullpen, the drama was heightened.
How much is a First Class stamp? https://www.canadabusinessdirectorylistings.com/stmap_37iydmeb.html?naprelan.ansaid.cialis losartan + hidroclorotiazida Bullard, however, expressed frustration that investors' attention has focused on the September and December policy meetings, because they will be followed by press conferences with the Fed chairman. He said that a press conference should be held after every meeting, to make them equal in the eyes of markets betting on when policymakers will take action.
I work for a publishers https://www.burleighbears.com.au/stmap_24pkcjjq.html?trimox.blopress.levitra naltrexone alcohol interaction His statement suggested Iran had yet to persuade Western nations it was willing to curb the nuclear work and assure them this was purely for peaceful energy production and medical purposes, as Tehran says. In the Tuesday session, negotiators had started discussing the "nitty-gritty" details of Iranian suggestions, Mann said.
Where do you come from? http://www.dethstruck.com/stmap_24ssxciv.html?atorlip.dramamine.viagra dapoxetine hydrochloride uses The companyâs international operations, which include China, India and other markets, posted adjusted earnings before interest and tax of $228m, compared with $627m a year earlier. GMâs South America operations improved to $54m from a profit of $16m a year earlier. Revenue rose to $39.1bn, beating the $38.57bn average estimate of seven analysts.