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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Augustine

    Could I take your name and number, please? https://helitecstructural.com.au/stmap_64tgzttt.html?viagra.dostinex.brahmi amankah obat loratadine untuk ibu hamil "The key is that while the rest of the world would likeChina to grow at 10 percent, policymakers are happy for growthto maintain between 7-7.5 percent over the coming year," saidSavanth Sebastian, economist at CommSec in Sydney.

  • Maxwell

    I need to charge up my phone http://www.capitalcomre.com/stmap_21ojktcc.html?ddavp.januvia.cialis que es la loperamide hydrochloride Dame Tessa said she was "very sad" and "very angry" at infighting within Labour between 1997 and 2010 and suggested it had overshadowed Labour's achievements in many people's eyes.

  • Wilfredo

    I'm not sure http://qnimate.com/stmap_21snbbax.html?oxcarbazepine.styplon.viagra.norvir detrol la dosage instructions Its mainstay advertising business, both the ads that appear next to search results and banner and video ads on YouTube and its partner websites, keeps humming along. Android, while not a direct moneymaker, appears to be positioning Google to thrive in the new era of mobile computing and communications. And YouTube itself has become a multibillion-dollar advertising phenom. Not least, Google keeps creating buzz, if not revenues, from whizzy projects such as its Glass wearable computers, its Nexus smartphones and tablets, self-driving cars, and WiFi balloons.

  • Arianna

    I'd like to change some money http://chassell.net/stmap_21ojktcc.html?levitra.tadalista.ovral kegunaan voltaren Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sed nunc sit amet ante tempor convallis. Donec consectetur libero faucibus ornare iaculis. Quisque in sagittis nulla. Morbi massa ligula, venenatis sed auctor mattis, bibendum ut ipsum. Donec ut malesuada eros. Ut placerat sapien massa, et aliquet magna feugiat eget. Donec imperdiet lectus non nibh sollicitudin rhoncus. Etiam egestas pellentesque varius. Cras eu purus sit amet lectus aliquet mollis eget a risus. Vivamus eu metus neque.

  • Napoleon

    I study here https://helitecstructural.com.au/stmap_39dwanrs.html?relafen.famotidine.cialis.assurans keflex dosage for dogs When the board blatantly and wastefully featherbedded unneeded staff during the super-low turnout 2011 election, we called them out, and the Department of Investigation assigned a six-person squad to stop it from wasting money. The board has since been stonewalling DOI’s probers. This move is a defiant thumb to the nose.

  • Ellsworth

    Your cash is being counted http://chassell.net/stmap_21ojktcc.html?levitra.luvox.simvastatin.keflex 3v lithium battery However, Downing Street would not guarantee a free vote on repealing the hunting ban in this Parliament. The Coalition has promised MPs a free vote on the ban as soon as parliamentary time is available.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:18598318

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

原创14 转载0 翻译0