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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Brayden

    Will I get paid for overtime? http://drkelnnerportela.com.br/pharmacy/stmap_42xxsjad.html?viagra.acetazolamide.keppra dosis naproxeno con paracetamol "With science answering many of those questions that we previously thought were unanswerable outside the realms of superstition and religious thinking, it's taken on a new importance in our lives," he says.

  • Edgardo

    I'd like to cancel a cheque http://cnpcl.com/stmap_42qktlqx.html?viagra.auvitra.monoket um asmatico pode tomar ivermectina More than a year after Kwiatkowski's arrest, Ficken said, she is still angry at Kwiatkowski and at the system that let him move from job to job after he was fired over allegations of drug use and theft.

  • Valentin

    I like watching TV http://drkelnnerportela.com.br/pharmacy/stmap_81aaschp.html?mexitil.cialis.sarafem tamoxifen bivirkninger behandling * Saudi Telecom's (STC) Indonesian unit has pickedMoelis & Co to advise it on negotiations with lenders as theoperator steps up efforts to restructure a $1.2 billion Islamicloan, two sources familiar with the matter said.

  • Lioncool

    Where are you from? https://assetgi.cl/pharmacy/stmap_42qktlqx.html?levitra.eregra.bentyl ciprofloxacino 250 para q sirve Volunteers look over their observation points on a map before starting their day in Detroit, Saturday, Sept. 21, 2013. Volunteers will be out Saturday and Sunday in an attempt to count the number of stray dogs as part of an Internet documentary series. It also is seen as a first step in finding a way to humanely deal with what has become a disease and safety risk for residents as the strays breed, increasing their population even as the city's population falls. (AP Photo/Carlos Osorio)

  • Jesus

    I'll put him on https://www.gunnagatsby.com/pharmacy/index.php/stmap_81aaschp.html?staytal.effexor.cialis ropex uk As the second part of the study revealed, however, it's not quite so simple. Instead of generally activating their mirror system less, individuals with psychopathy rather seem not to use this system spontaneously, but they can use it when asked to. "When explicitly asked to empathize, the differences between how strongly the individuals with and without psychopathy activate their own actions, sensations and emotions almost entirely disappeared in their empathic brain", explains Valeria Gazzola, Assistant Professor at the UMCG and second author of the paper. "Psychopathy may not be so much the incapacity to empathize, but a reduced propensity to empathize, paired with a preserved capacity to empathize when required to do so". The brain data suggests, that by default, psychopathic individuals feel less empathy than others. If they try to empathize, however, they can switch to 'empathy mode'.

  • Austin

    How much is a Second Class stamp? http://invoice.shagunsuitsaree.com/pharmacy/stmap_42qktlqx.html?atenolol.ceftin.levitra fungsi dari obat simvastatin 20 mg “While mortgage rates have spiked in recent weeks after the Fed expressed its desire to start cutting back on its bond purchases later this year, economists do not believe that this will derail the housing recovery.” Do “economists” believe the spike of rates is temporary, or buys will shell out 20% more cash for the same house?

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:19656486

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

原创14 转载0 翻译0