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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Booker

    I'm a trainee http://www.designcure.co.uk/stmap_94gyirtx.html?celadrin.doxazosin.sleepwell.levitra tretinoin philippines After 2008, Japan's Financial Services Agency (FSA) tooksteps to tighten rules on marketing of complex derivatives tocolleges and other non-profits. Regulators said they were notaware of any large losses from products that came after thetighter rules were in place.

  • Amado

    No, I'm not particularly sporty http://phatfabe.com/stmap_62kqmdaq.html?levitra.anti-wrinkle-cream.super finpecia finasteride results However, Mrs Miller, calling for teachers to intervene for the first time, said they would want to “ensure the children in their care understand the importance of not accessing material like that when they are underage, and also the pernicious effect of pornography in their lives long-term".

  • Granville

    I do some voluntary work https://www.goodworkint.com/stmap_21snbbax.html?tadagra.lotrel.levitra clomid kopen "Following the meeting, the board unanimously recommendsshareholders to vote against all of the proposed M&Gcandidates," Gulf Keystone said in a statement, adding that itwas posting a circular to shareholders to explain its reasons.

  • Cornelius

    Please wait http://www.designcure.co.uk/stmap_94gyirtx.html?amaryl.levitra.copegus.piroxicam desogestrel australia How are you going to pay to incarcerate all of those criminals and mentally ill? How are you going to identify the mentally ill, considering that most mentally ill don't realize there is a problem. Also, are referring to the Civil War as the 1st war? Now, there are some good functions that the NRA is responsible for, but the political action wing is just for the gun industry, not the individual gun owner.

  • Bob

    I work for myself https://butiaonline.com.br/stmap_62kqmdaq.html?aspirin.revia.viagra.glimepiride champix pfizer precio chile The long-waited prosecution comes almost a year after Bo was expelled from the Party in September. He had been among the 25 members of China’s Politiburo, the Communist Party’s top decision-making group. Bo and his wife, Gu Kailai, have been the central characters in one of the biggest political scandals to hit China in decades.

  • johnansaz

    http://imrdsoacha.gov.co/silvitra-120mg-qrms

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:18534282

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

原创14 转载0 翻译0