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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Danilo

    A pension scheme http://porntuberating.online tubegalore Examiner.com is a content destination powered by over 100,000 independent contributors. Every week our contributors post thousands of informative and entertaining articles designed to feed your curiosity on the subjects that you crave.

  • Darwin

    Remove card http://xnxxrating.online madthumbs In a statement on Friday, NBCUniversal said it had hiredConde as an executive vice president reporting to CEO SteveBurke. Conde will oversee the unit's international group, andwill focus on "business development, strategic priorities andspecial projects across the NBCUniversal portfolio of assets,"the company said. His role is a newly created position.

  • Mya

    Where's the nearest cash machine? http://tuberating.online/youporn.html ixxx But scientists may never know for sure. Going against the hopes of many palaeontologists, these two nearly complete skeletons, found by commercial prospectors on a private ranch, are not going directly to a museum for further study. Instead, billed as the “Montana duelling dinosaurs,” they will be auctioned in November by Bonhams in New York, for a projected price of $7 million (Dh25.7 million) to $9 million, which would be one of the highest prices ever paid for dinosaur fossils.

  • Angelo

    I work for a publishers http://porntubereview.online/tnaflix.html pof Final results are due within hours of polls closing. But with margins so close, the country could still face weeks of horse-trading before a clear picture emerges about the makeup and policies of Germany's next government.

  • Laverne

    I never went to university http://xvideosrating.online/ghettotube.html wifelovers Democrats, and Obama, stepped up their criticism of House of Representatives Speaker John Boehner for refusing to schedule a vote on a separate unencumbered measure to fund the government and end the shutdown. They believe it would pass with most Democrats in the House voting for it along with a handful of Republicans. Boehner said Sunday that it would fail.

  • Crazyivan

    Whereabouts in are you from? http://tubearchive.online/spankwire.html 9taxi According to Cashman, meetings with his pro scouting department will begin on Monday, and he reiterated several times that owner Hal Steinbrenner’s stated desire to slash the payroll under the $189 million luxury-tax threshold is “a goal, not a mandate . . . if it’s at the expense of a championship” team.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:15335368

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

原创14 转载0 翻译0