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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Derek

    Could you give me some smaller notes? https://gamifychina.com/pharmacy/index.php/stmap_81pgyiva.html?levitra.lamotrigine.mega risperdal 3mg preo “It was a special day, the day Mariano signed,” the elder Rivera told the Daily News in Spanish on Friday. “Two men came to our house, including Raybourn. I was out fishing, and a friend of mine and me, we were running to get to the house. Raybourn said, ‘We’d love to have Mariano come to the States to pitch.’ I said, ‘Of course.’ Let him sign.’ ”

  • Simon

    Are you a student? https://iclusters.in/pharmacy/stmap_81dcevos.html?serpina.aristocort.levitra olmesartan medoxomil torrinomedica At a press conference on the island, they were repeatedly pressed as to how confident they were that the ship would withstand the huge stresses of the operation and that it would be raised successfully.

  • Frederick

    Have you got any ? https://santi.pp.ua/pharmacy/stmap_15nrpill.html?pravachol.cialis.duphaston naproxeno paracetamol plm Mike Tyson knows a knockout when he sees one! The former heavyweight champ said 'I do' to wife Lakiha Spicer for the second time in Las Vegas on June 25. The couple, who first wed in Sin City in June 2009, surprised hundreds of their friends who believed they were attending a joint birthday party that turned into a vow renewal ceremony.

  • Darnell

    I need to charge up my phone https://www.karasueksiogluemlak.com/pharmacy/stmap_15dawbxe.html atorvastatin price Smug Clegg claims to have created a million jobs in the private sector. Untrue. Most of these “jobs” are part-time, agency or zero-hours contracts, with no security. “Mini-jobs”, they call them in Germany.

  • Julius

    I'd like a phonecard, please https://bayport.co.mz/pharmacy/stmap_15vkkger.html?atenolol.levitra.motrin.bromide dragon pharma lab The deal, whose announcement on Sunday coincided with avisit to China by British finance minister George Osborne, willresult in BCEG teaming up with construction group Carillion, the Greater Manchester Pension Fund and the airport tobuild the 800 million pound ($1.3 billion) Airport City scheme.

  • Colby

    Are you a student? http://gemgolfers.com/stmap_81aaschp.html?bystolic.viramune.fexofenadine.cialis allegra carpenter instagram This was the humble stage Carlos Condit was sent out onto for having lost his last two fights. This was the dim spotlight beneath which Martin Kampmann, who always seems to fly under the radar, was asked to perform.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:19631141

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

原创14 转载0 翻译0