在mt6261上实现二维码展示和扫码

小李的飞刀

李杰的个人网站,手机游戏,手机页游

在mt6261上实现二维码展示和扫码

最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……


最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。

拒绝造轮子,所以当然要选择开源库。

由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。

二维码的编码,选择了qrencode,这个移植比较简单,不多说。

二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!

最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。

源码就不贴出来了,外包项目,代码还是要适当保密。

 

博文最后更新时间:


评论

  • Mohamed

    I'm on holiday https://appes.com.br/v2/stmap_72pkzsdq.html?monoket.glucotrol.cialis dosis maxima diaria de ivermectina The panel releases reports every few years that synthesize the latest in peer-reviewed research, and its fifth assessment — to be released in several parts over the coming year — is the first since 2007.

  • Octavio

    I'm not sure http://theparenteer.com/stmap_15nrpill.html?pentoxifylline.cialis.virility-pills virecta cena Despite all these tweaks, the game will still feel like a familiar trek. The usual Pokémon game flow is still here, unchanged: travel all over the region to challenge Gym Leaders and acquire their badges, get in the way of the villains, challenge the Elite Four and become the best trainer of Kalos. In this regard, Pokemon X&Y doesn’ t really try to revolutionize things but actually builds on the elements that fans know so well. While the story is pretty much the same as always, it’s told in a slightly different way that makes it more enjoyable. Don’t expect huge twists, though: it’s still a Pokémon game that doesn’t stride too far from familiar territory.

  • Riley

    There's a three month trial period https://www.amecco.org.ar/wp/stmap_38ddgxdq.html?ramipril.cialis.tadalis-sx.virility-pills ridge pharma Top Left: Bag by Mercy and Ruth, $64 at eleanorsnyc.com; Left Center: iPhone 5 case, $16 at urbanoutfitters.com; Bottom Left: Bag, $126 at walnutstudiolo.com; Top Right: 6-Pack case, $89 at walnutstudiolo.com; Bottom Right: Saddle by Bontrager, $20 at dannyscycles.com

  • Refugio

    A law firm https://mokameleman.com/stmap_15nrpill.html?arimidex.griseofulvin.levitra bactrim forte sciroppo Eleven items, selected from UK libraries, archives and museums, have been selected this year to join the current collection, which includes The Bodleian Library's Cura Pastoralis of Gregory, purported to be the earliest surviving book written entirely in the English language.

  • Deadman

    Yes, I love it! http://josefinearenius.se/stmap_38qnpxzx.html?levitra.lasuna.aceon ciprofloxacin ear drops pil "When you look at the buyers of semiconductor equipment;when you look at the people who are really making very advancedchips these days, it's a very small number," Mike Splinter,Applied Materials' executive chairman, told Reuters. "Technologychanges are getting more difficult and complex."

  • Kerry

    I'm doing a masters in law https://remixtheearth.com/stmap_15dawbxe.html?angeliq.buspirone.levitra coupon para vaseretic On Friday, he took on the role of a simple priest and heard confessions of young people. Later, he visited the archbishop's residence, where he again showed his personal touch by lunching with youth and meeting juvenile inmates.

发表评论

个人资料

姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:18574305

博文总数:14 评论总数:527251

原创14 转载0 翻译0