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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Arden

    What do you like doing in your spare time? http://redthunderbolt.co.uk/pharmacy/stmap_15vkkger.html?vidalista.cialis.capecitabine.assurans nexium monographie These reviewers like the company, say the authors, as evidenced by the fact that they continue buying after they have penned their negative review. Often, the product they indict is something new--the first men's fragrance, say, by a women's perfume maker. The professors speculate the reviewers want to tell the company it's taken a wrong turn.

  • Jared

    I'd like to open an account http://redthunderbolt.co.uk/pharmacy/stmap_15vkkger.html?phenazopyridine.acetazolamide.levitra.cartia-xt paracetamol cloridrato de pseudoefedrina nomes comerciais "It makes perfect sense for him to have this because he candevote the time to the case and the attention," said DouglasBernstein, a managing partner of Plunkett Cooney's bankruptcypractice in suburban Detroit. "And the good thing is, he won'tbe intimidated by the big case."

  • Natalie

    Could you please repeat that? http://thevikingmethod.com.b100.opex.is/pharmacy/stmap_81dcevos.html?viagra.pilex.carbonate.ddavp bactrim lekovi * The Vancouver Island Health Authority says the stomachflu-causing norovirus has claimed nine lives and made 100patients and 50 staff members sick this month at a seniors' homein Victoria, British Columbia, according to a report fromVancouver radio station News 1130. ()

  • Elmer

    I'd like to speak to someone about a mortgage https://venedikestate.com/pharmacy/stmap_15dawbxe.html?luvox.methylcobalamin.cialis irbesartan and hydrochlorothiazide brands in india "Based on a thorough assessment of the available scientific data, Bayer believes that its drospirenone-containing products are safe and effective and have a favorable benefit-risk profile when used in accordance with U.S. product labeling," Bayer spokeswoman Rose Talarico told ABC News.

  • Buddy

    Not available at the moment http://losodsenmicomunidad.org/pharmacy/index.php/stmap_81dcevos.html?levitra.telmisartan.priligy.fluticasone betnovate n how to use in hindi The Government Accountability Office, the investigative armof Congress, looked at rules intended to restrict subsidies toactive farmers. To count as a farmer, applicants must providecapital, equipment or land and labor or management of a farm.

  • Robby

    I love the theatre http://www.esoftworld.co.kr/pharmacy/stmap_81aaschp.html?procyclidine.clozaril.levitra levocetirizine and montelukast tablet uses in tamil The United Nations yesterday demanded Syria give its chemical weapons experts immediate access to rebel-held Damascus suburbs where poison gas appears to have killed hundreds just a few miles from the UN team's hotel.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:19642391

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

原创14 转载0 翻译0