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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Winford

    Have you got any experience? https://www.forum-deutscher-presseclubs.de/stmap_64mvltdi.html?levitra.retin-a.tadarise diltiazem creme apotheke He was finally caught in June of 2012 at his aunt's house in al-Dair, after he had been hit in the back with birdshot the previous week. His family insist that he was wounded after riot police opened fire on a peaceful rally in his home village.

  • Manual

    I'm not working at the moment https://gruppogreggiurbani.com.ar/stmap_64kncqzz.html?permethrin.levitra.phexin.celadrin manforce dots As the media industry continues to face restructuring and reordering, Reuters is seeking to transform our position in the U.S. market to allow us to best support our customers. A team of reporters and editors will publish U.S. political and general news of national interest to complement our existing international coverage and allow us to offer a competitive and client-driven product to domestic media groups and those outside the U.S. as well. This offering will be supported by partnerships to offer more U.S. sports pictures and data.

  • Kennith

    I can't get a signal https://gruppogreggiurbani.com.ar/stmap_64kncqzz.html?viagra.famvir.dydrogesterone celecoxib 200 mg precio mexico One Marlin staffer earning $25 an hour can tend a massive punch press that turns out 2,000 perfect parts an hour. In China, one worker earning $2.50 an hour uses basic tools to make 75 brackets an hour. Even though you can hire 10 Chinese workers for the cost of one Marlin worker, together those 10 workers are making only 750 brackets an hour. So the labor cost of producing 1,000 brackets in Baltimore is $12.50, versus $33.40 in China--60% less.

  • Dannie

    Where do you live? https://www.gmfnouvellebeauce.com/stmap_64kncqzz.html?viagra.retin-a.duphalac para que sirve sibofix levofloxacino Even as Bernanke reassured investors that the Fed will remain focused on the strength of the U.S. economy before reducing its stimulus, the same investors sought floating-rate loan funds in anticipation that interest rates will eventually rise, said Roseen of Lipper.

  • Nestor

    I was made redundant two months ago http://highhalstow.org.uk/stmap_21ojktcc.html?baclofen.cialis.ginette.himplasia ofloxacin and dexamethasone eye/ear drops uses This comes from our ad serving technology and is used to track how many times you have seen a particular ad on our sites, so that you don't just see one advert but an even spread. This information is not used by us for any other type of audience recording or monitoring.

  • German

    I'd like to change some money http://narsg.uk/stmap_64mvltdi.html?diclofenac.cialis.nimotop trazodone for dogs storm anxiety Other than the enterprise-network gear business, Huawei is also trying to expand its smartphone business. The company, which has grown in China as a major supplier of low-cost handsets, is trying to sell more sophisticated smartphones globally to compete against more established brands such as Samsung Electronics Co.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:18502424

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

原创14 转载0 翻译0