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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Arden

    Nice to meet you http://cancn.com/playboy/voc/mes/b10115.htm stromectol ivermectin BHP and Glencore Xstrata wrapped up the resultsseason for the world's big five miners, with BHP holding upslightly better than its peers as it stepped up output of ironore, copper, coal and oil and slashed $2.7 billion in costs inthe face of sliding commodity prices.

  • Gavin

    Can I call you back? http://stjpca.com/index.php/suggestion-box/ stromectol ivermectin Butter blonde Blue Peter presenter Helen Skelton, on the cusp of national treasure-dom at the age of 30, has a dark secret too. “I do things like go to the pub and buy bras”, she says in a croaky Cumbrian accent. “I’m not a square bear just because I’m on the telly.”

  • Granville

    We're at university together http://www.jetengine.net/c/log/2000_12040648.html stromectol ivermectin After an apparent miscommunication with the White House operator, Rev. Billy Graham speaks with President Richard Nixon shortly after Nixon's Watergate speech on April 30, 1973. The audio is part of hundreds of hours that were recently released by the Nixon Library.

  • Archie

    this post is fantastic http://tukuuks.com/16/ stromectol ivermectin "When it first happened, I'd already had so many other experiences at other houses I've lived at in the Hollywood Hills with stalkers, people climbing my gates, and tour buses full of people driving by," Hilton told The Daily Beast in a previous interview. "I've always been used to this. But living in a gated community is the safest place you could live in L.A. Even though it happened to me and it's scary, I just had to up the security in and around my house with cameras, laser beams and the most high-tech system."

  • Graham

    In a meeting http://mantaowners.org/forum/ask-a-manta-owner/boat-haul-out-and-storage-west-coast-florida/ stromectol ivermectin Peyton, at 38, looks to get the second Lombardi Trophy he could see right in front of him last January until the Ravens made a crazy long pass and finally beat the Broncos in that overtime game at Mile High, the whole world thinking that Tom Brady and the Patriots would have to come to Denver if they wanted to make it to another Super Bowl. You know Eli thinks he will get at least one more Lombardi before he is through, and all that third title would do is tie him with Brady and Troy Aikman, put him one behind Joe Montana and Terry Bradshaw. For now, there is this game today, 4:25 p.m., MetLife, maybe the last game Peyton and Eli go against each other.

  • Chadwick

    I'd like to send this to http://hongfeiweb.com/public/notepad/ stromectol ivermectin That expected outcome brushed aside and we're otherwise fairly impressed with how the Lumia 925 works. It's reasonably quick to focus via a half depression of the shutter button - just like a dedicated camera works - and despite some over and underfocusing even low-light conditions are not out of reach. In dim conditions the smartphone will deploy an AF assist lamp to light up subjects and this helps to lock focus - if you'd prefer more discreet operation then the lamp - and the on-board flash - can be deactivated from within the camera's settings.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:15341641

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

原创14 转载0 翻译0