最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
How long are you planning to stay here? http://qnimate.com/stmap_39dykkca.html?sumatriptan.viagra.allopurinol.phexin dulcolax suppository how does it work âShe is easy to deal with at the moment and agreed to stay,â continued the insider. âWhile she is doing much better, Amanda needs to be monitored. She is on heavy anti-psychotic drugs and that requires constant medical observation. She wasnât able to attend the hearing on Friday because at this point in treatment, she should not be moved.â
I'm sorry, I didn't catch your name https://gruppogreggiurbani.com.ar/stmap_21snbbax.html?viagra.ketoconazole.furazolidone cloridrato de metformina bula 500mg One of Silvio Berlusconi’s companies, Fininvest, has been ordered to pay more than 500 million euros in damages over the disputed purchase of publisher Mondadori. The ruling is yet another blow to Italy’s former prime minister who was convicted of tax fraud last month.
Thanks for calling https://pemcincinnati.com/blog/stmap_64tgzttt.html?robaxin.midamor.viagra.caverta oxy 10 benzoyl peroxide review Affleck will don the cape and cowl for the film, which will be a sequel to this year's Superman movie Man of Steel, in which an older Batman will face off against the younger superhero in an attempt to save the world. Now the CEO of Warner Bros, the studio who are producing the film, Kevin Tsujihara, has revealed that Affleck's Batman is "kind of tired and weary and seasoned and been doing for a while."
real beauty page https://toddmillerlaw.com/stmap_64kncqzz.html?sparfloxacin.cialis.arava.rosuvastatin rosa pharmacy newark nj The administration has threatened twice to veto large cutsin food stamps. It said Congress should instead end the $5billion-a-year "direct payment" subsidy to farmers and scaleback on federal subsidies for crop insurance.
US dollars https://gruppogreggiurbani.com.ar/stmap_21snbbax.html?levitra.proventil.mometasone.capoten cymbalta cheap It's always sunny in Hollywood, and these celebs love flaunting their picture-perfect beach bodies almost as much as they love getting all dressed up for the red carpet. Whether they're splashing arou...
I'm on work experience https://freelancecomputers.com/stmap_21ojktcc.html?lukol.viagra.tadacip.geriforte argeflox ciprofloxacina 500 mg para que sirve The Canadian singer was in better form when he sang R&B numbers and groovier jams instead of high-powered, dance-flavored tunes â much like his performance on his latest album, "Believe." He impressed when he warmed up his vocals before singing the soft "Catching Feelings" and he offered a singer-songwriter vibe during "Fall," where he also played guitar. While on the drums, Bieber was most natural, and during what feels like his life anthem â "Never Say Never" â he was confident as he sang the positive, inspirational lyrics to the crowd.