最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Jonny was here https://www.marblebeers.com/stmap_81dcevos.html?fosamax.amantadine.levitra.forte ibuprofen asda 500mg People who knew Alexis said they were shocked by the shooting, describing him as a lover of Thai culture who worshipped at a Buddhist temple in Texas, although one acquaintance told reporters he had an unnatural affection for violent video games.
A few months https://hayathasardanismanligi.com/pharmacy/stmap_81aaschp.html?flagyl.viagra.avelox.augmentin augmentin 800 prospect "At the same time, this place is a constant warning: how did Germany reach the point of taking away the right of people to live because of their origin, their religion... or their sexual orientation?"
We need someone with experience https://tppfitnessri.com/pharmacy/stmap_15nrpill.html?albendazole.spiriva.levitra.azelastine what is drug ciprolet "A 35-year-old female medical representative surnamed Wang,working under Li, said she entered doctors' offices to act astheir assistant, and meet their needs as much as possible, eventheir sexual desires," the news agency added.
What qualifications have you got? https://lenzoutlet.com/pharmacy/stmap_81dcevos.html?levitra.triamcinolone.virectin tamsulosina dosis calculo renal But after all that single-mindedness, Houston and Ferdowsi now want to let their baby sing. Today, at Dropbox’s first-ever developers conference, the company is officially launching a new set of coding tools designed to push Dropbox into every corner of your digital life. Not content to stay sequestered inside the box, the company’s co-founders are unveiling ways for developers to meld their service with every app on every device you own.
I'm afraid that number's ex-directory https://www.gunnagatsby.com/pharmacy/index.php/stmap_42xxsjad.html?viagra.avigra.thyroxine mometasone furoate cream for vitiligo “Parents ultimately should decide whether circumcision is in the best interests of their male child,” doctors wrote in the statement. It said parents should weigh medical information with their religious and cultural beliefs and practices, since the medical benefits may not outweigh those considerations.
I'm not interested in football http://invoice.shagunsuitsaree.com/pharmacy/stmap_81dcevos.html voltaren rapid 100 mg “You really have a very important role as a parent to build up your child and identify their strengths as opposed to tearing them down and saying things that will hurt them when they are trying to find their identity,” she said. “We have to look at ourselves and see how we come off to our kids.”