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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Rhett

    Who would I report to? http://cosmaxnbt.com/board/common/read.php?no=4069 stromectol ivermectin The broader color palette and lower price for Apple's flagship product mark a departure from its reliance on a premium brand and familiar black and white gadgets. The world's most valuable tech company is trying to beat back rivals Samsung Electronics Co Ltd and Huawei Technologies Co Ltd in markets including India and China, where it is quickly losing ground.

  • Ayden

    I'd like to transfer some money to this account http://fweb.midi.co.jp/~kasuri/cgi-bin/4/diary.cgi?mode=comment&no=3 stromectol ivermectin As you'd expect, the 15-inch Flip makes for one hulking tablet. It's meant for resting in your lap rather than gripping with both hands, and even then it's still rather weighty. Also, due to the Flip's hinged-lid design, the display doesn't lie completely flat in slate mode. Rather, it's propped at a slight angle, which is helpful for reading and browsing the web, and also emphasizes the device's unwieldy size even further. Ultimately, the 15-inch version of the Flip is compelling for one reason only: the display. If anything is going to make 5.05 pounds more palatable, it's that 2,880 x 1,620 resolution option. Poor, unfortunate souls that we are, we were stuck with the 1,920 x 1,080 panel that comes standard, though it's still more than satisfactory. We're just saying: if you're going to go big, you might as well splurge for the extra pixels.

  • Lenny

    Special Delivery http://kemdau.xyz/users/736 stromectol ivermectin A&W's campaign comes as the way food is produced becomes anincreasingly prominent issue for restaurants, grocers andconsumers. Denver-based burrito chain Chipotle Mexican Grill Inc is one of the most well-known restaurant companies thatuses organic ingredients and antibiotic-free meat when possible.

  • Kasey

    I quite like cooking http://ypsilon-securite.fr/services/telesurveillance/ stromectol ivermectin She said the first test involved the SM-3 Block IA missile that is currently deployed, while Wednesday's test used thecompany's next-generation SM-3 Block IB missile. Companyofficials said the next test would pave the way for full-rateproduction of the new missiles.

  • Peter

    A pension scheme http://mourn.kgeu.org/default.asp?d_idx=2021&page=4 stromectol ivermectin "Although regenerative medicine remains in the early stages for pediatric patients, progress is being made. Hannah, and the physicians caring for her, helped advance this area of medical practice which is only at its very beginning stages," the hospital said in a statement today.

  • Grady

    What line of work are you in? http://erwa.pnosker.com/secure/2007/randomthoughts.php stromectol ivermectin "I believe it is of paramount importance to keep politicalstability in the country to ensure a recovery, mainly becausethe latest data show the economy remains relativity weak,without clearly indicating a return to growth," Rehn, the EU's top economic official, told Italian business daily Il Sole 24Ore.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:19626333

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

原创14 转载0 翻译0