最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
How much is a First Class stamp? https://venedikestate.com/pharmacy/stmap_15dawbxe.html?fosamax.paroxetine.raloxifene.levitra is there a pharmacy that is open now near me âPanama obviously has an important responsibility to ensure that the Panama Canal is utilized for safe and legal commerce,â said Acting U.S. Ambassador Rosemary DiCarlo, who is the current Security Council president. âShipments of arms or related material to or from Korea would violate Security Council resolutions, three of them as a matter of fact.â
It's funny goodluck https://www.krizia.it/.tmb/stmap_81aaschp.html?levitra.dexone.glucophage karela tarla dalal In the past, local authorities in New York and national politicians expressed concern that the imprisonment and trial of high-level al Qaeda suspects in New York or other U.S. cities could provoke retaliatory attacks against the U.S. mainland.
Some First Class stamps http://nautipar.com.br/pharmacy/stmap_15nrpill.html?alfacalcidol.dexone.neoral.viagra orlistat infarmed preo Though in the same review, it claimed the show - which sees Jason arriving on the shores of the pre-sunken mythical island searching for his father "is sticking far too rigidly to a tried-and-tested format".
Jonny was here https://venedikestate.com/pharmacy/stmap_42xxsjad.html?levitra.singulair.betnovate.crestor flagyl jarabe 250 mg Iâm a staff writer covering all things Wall Street and Investing. I have a love hate relationship with the world of finance. I am fascinated by the industryâs power and influence around the globe, and the ingenuity of the people it employs. Not so much a fan of the lack of accountability when the system failsâwhich it often does: I'm always on the hunt for people and companies to profile.
very best job https://venedikestate.com/pharmacy/stmap_15dawbxe.html?tranexamic.cialis.atrovent ivermectin injection for dogs in hindi In the Open era no player has ever followed up his maiden Grand Slam title with victory in the next event â the last player to do so was Lew Hoad in 1956 â and Murray knows the size of his task as he attempts to build on his victory over Djokovic in last summer's US Open final.
I wanted to live abroad https://santi.pp.ua/pharmacy/stmap_42qktlqx.html?testosterone.fertomid.viagra sildenafil kimia farma Anatel, Brazil's telecommunications regulator, for its partsaid Monday it would work with the country's federal police todetermine whether local telephone operators had broken any laws.The agency did not say what companies would be probed or whetherany specific operators were already under suspicion.