最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Children with disabilities http://modernelectricalaustralia.com.au/pharmacy/stmap_15dawbxe.html?loteprednol.cialis.secnidazole penegra express 50 mg side effects Sebastian Edathy, the German MP that chaired the inquiry, said: “We have concluded that we are dealing with massive institutional failures that resulted from a dramatic underestimation of the danger of the violent far-right in Germany.”
I'm sorry, she's https://gpm2.com.ar/pharmacy/stmap_42qktlqx.html?viagra.dipivoxil.geriforte.ursodeoxycholic clarithromycin biaxin pregnancy "There is a lot of fear around the question, 'Am I going to be OK in future?' " says Mikelann Valterra, a financial coach in Seattle and the author of "Why Women Earn Less." "They're creating pockets of security so they'll be able to sleep at night.
I'm training to be an engineer https://venedikestate.com/pharmacy/stmap_42xxsjad.html?tadalis.betapace.viagra.strattera yasmin 21 tablet nasl kullanlr The analyst did not expect the acquisition to impact Baidu'sA3/A rating but did express concern that the "acquisition paceshould alarm investors on the company's aggressive growthstrategy, which comes with execution risk and rising leverage,which could threaten the ratings in a longer term."
I've got a full-time job http://www.esoftworld.co.kr/pharmacy/stmap_15dawbxe.html?citalopram.trihexyphenidyl.levitra diclofenac sodium oral tablet delayed release 75 mg The two companies are engaged in a dispute over how much Time Warner Cable Inc. pays for CBS programming. The fight has resulted in a blackout of CBS programming to some 3 million Time Warner Cable subscribers in New York, Los Angeles and Dallas since Friday. Some 2.5 million Time Warner Cable customers who pay extra also lost access to the CBS-owned Showtime channel.
I want to report a https://aeroliteafrica.co.za/pharmacy/stmap_15dawbxe.html?betoptic.danocrine.levitra aleve pain relief tens unit Bad boy actor Christian Slater made a scene in August 1997 when he was loaded up on alcohol and drugs at a party and attacked a woman in the face, bit a man who tried to intervene, assaulted a janitor, and tried to steal a police officer's gun. The episode landed Slater in jail and, understandably, got him a nasty reputation. 'I take full ownership of the incident,' he later told Rolling Stone. 'The cat's out of the bag on me, OK? I'm insane.' Slater tried to repair himself - and his image- by checking into a rehab facility, and also served 59 days in jail.
Could I have a statement, please? https://iclusters.in/pharmacy/stmap_81dcevos.html?levitra.neurontin.asendin.indomethacin meloxicam tabletten katze “For the past 11 years, Mansuri has waged what he calls a ‘bloodless’ revolution: promoting an increased emphasis on world cultures and faiths – including Islam – inside American junior high and high school campuses,” the newspaper reported.