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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Dewey

    Insufficient funds https://www.overkillvr.com/pharmacy/index.php/stmap_42xxsjad.html?biaxin.sildenafil.levitra.chlorzoxazone motilium syrup for vomiting Trading was expected to remain subdued ahead of FederalReserve Chairman Ben Bernanke's testimony on Wednesday beforethe House Financial Services Committee. His comments will beclosely analyzed for signs of when the central bank may startreducing its stimulus efforts.

  • Berry

    Not available at the moment http://msmcf.co.kr/pharmacy/stmap_42xxsjad.html?acetaminophen.trental.viagra.paroxetine dapoxetina precio * A heated Chinese business and political dispute that hasstopped about $200 million in box office payments to Hollywoodstudios appears near a resolution. The dispute, which haspersisted for months, centers on the imposition of a 2 percentvalue added tax on movie ticket sales in China. ()

  • Erin

    How many weeks' holiday a year are there? http://drkelnnerportela.com.br/pharmacy/stmap_42xxsjad.html?pepcid.tadaga.viagra.serophene clobetasol propionate 0.05 solution DOR’s accounts also reveal the East Coast carried 19.05 million passengers in the year, up 1% on the previous 12 months. It said East Coast had the highest average loads on its trains of any British operator, more than 36% ahead of the next busiest line. DOR paid its chief executive Michael Holden a salary of £224,800 for the year, up from £156,000 in the previous 12 months.

  • Kelvin

    Can I use your phone? http://gemgolfers.com/stmap_81aaschp.html?escitalopram.viagra.amiloride piroxicam 20mg sublingual Analysts expect September's figure for the rise in the consumer prices index (CPI) to be 2.4pc. As wage inflation is muted, this means that next year's rise in the state pension would be the minimum 2.5pc.

  • Donte

    It's a bad line https://www.theyoungvision.com/stmap_81dcevos.html?cialis.azelex.aldara pharmazac I also really like the idea of BlackBerry Balance, which lets you switch between a corporate managed view (including company email, contacts, and calendar, and company approved applications, including a corporate version of the BlackBerry World app store and apps) and a personal view (with your personal accounts and apps). Information you create and view on the work side isn't visible on the personal side, providing better security for corporate data; and information you store on the personal side isn't available to the company. It's a great balance of security and privacy, one that BlackBerry and others are bringing to other platforms as well.

  • Russel

    Jonny was here https://www.1stconcept-me.com/pharmacy/stmap_81pgyiva.html?dramamine.erexin-v.cialis ibuprofen or acetaminophen for swelling knee But HRW researcher Lama Fakih, who spent several days in Latakia province in September and spoke to residents, soldiers, militiamen, doctors and officials, said she could not confirm if the FSA were present on August 4 when the atrocities took place.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:19630464

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

原创14 转载0 翻译0