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

小李的飞刀

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

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

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


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

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

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

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

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

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

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

 

博文最后更新时间:


评论

  • Kaylee

    I've got a part-time job http://www.surfinglabenne.com/stmap_38ddgxdq.html?captopril.esomeprazole.levitra.staxyn what is the difference between dexilant and lansoprazole In Hanover in May, Springsteen grabbed a sign in which a fan offered a body organ to hear "Drift Away". Springsteen told the fan he didn't really know the song but wanted him to go home in one piece so he'd give it a go.

  • Ellsworth

    I'm interested in this position https://mokameleman.com/stmap_72yxfzej.html?yasmin.clonidine.levitra does lipitor cause weight gain The Florida Fish and Wildlife Conservation Commission allows hunters with special permits to remove pythons and other exotic reptiles from some state lands. Earlier this year, a state-sanctioned hunt that attracted worldwide media attention. Roughly 1,600 amateur python hunters joined the permit holders for a month, netting a total of 68 snakes.

  • Diana

    I'm unemployed https://www.amecco.org.ar/wp/stmap_15vkkger.html?viagra.compazine.cetirizine viagra funciona depois de quanto tempo The attackers struck on a Saturday afternoon, a time when families flock to the mall. Couples pushed strollers through marbled floors that would soon turn red with blood. Mothers with toddlers in tow loaded groceries into shopping carts at the supermarket, the same carts which would be used hours later as gurneys to evacuate the more than 60 dead.

  • Haley

    Whereabouts in are you from? http://nadong.go.th/stmap_72yxfzej.html?propafenone.levitra.eregra will zofran help a hangover Two Fried Eggs and a Kebab (1992) turns a tabletop into a set of viciously reductive symbols for a naked woman, with congealed yolks for nipples, and a half-eaten pile of meat in place of genitals. Wit is always a prominent part of Lucas’s work, and, on one level, this sculpture is simply a bawdy visual pun. But it is also deliberately filthy and misogynistic, informed by the feminist literature that Lucas was reading as a young artist, and pointing the finger at the incipient lad culture of the Nineties, when it was OK for men to boast about sexual conquests as though their partners were as throwaway as fast food.

  • Wilton

    I'd like to cancel this standing order http://theparenteer.com/stmap_15nrpill.html?cyclogyl.cialis.citalopram what happens if u take paracetamol on an empty stomach The first source familiar with the bank's position said J.C.Flowers' proposal would not have eliminated the prospect of anew ECJ investigation, since the bank has fallen behind on itsDisapproved business plan and could be reviewed on that basis.

  • Lucas

    One moment, please https://remixtheearth.com/stmap_15dawbxe.html?cialis.furazolidone.digoxin.retin-a el minoxidil mk sirve para la barba Consumer spending continued to advance, but spending on items other than motor vehicles was relatively soft. Recent high readings on consumer confidence and boosts to household wealth from increased equity and real estate prices suggested that consumer spending would gather momentum in the second half of the year. However, a few participants expressed concern that higher household wealth might not translate into greater consumer spending, cautioning that household income growth remained slow, that households might not treat the additions to wealth arising from recent equity price increases as lasting, or that households' scope to extract housing equity for the purpose of increasing their expenditures was less than in the past.

发表评论

个人资料

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

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:18577615

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

原创14 转载0 翻译0