最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Canada>Canada https://hayathasardanismanligi.com/pharmacy/stmap_81aaschp.html?phenazopyridine.lidocaine.revia.viagra azithromycin over the counter walgreens After James Loney added a three-run homer against reliever Adam Warren in the seventh for a 10-1 game, Girardi removed Ichiro Suzuki, Robinson Cano and Lyle Overbay. Their replacements â Melky Mesa, David Adams and Chris Stewart â combined to go 5-for-6 with four RBI as the Yanks scored twice in the eighth and three times in the ninth.
I can't hear you very well https://mymymakeup.art/pharmacy/stmap_42xxsjad.html?clarinex.dexamethason.zenerx.levitra epimedyumlu ginsengli It is a common story, according to research from FidelityInvestments, which found that 4 in 10 couples who aren't retireddisagree about the lifestyle they expect in retirement. Morethan a third don't agree on where to live or have no idea wherethey want to live. One-third disagree about whether they willcontinue to work in retirement, according to a Fidelity surveyreleased at the end of September.
Your cash is being counted https://www.krizia.it/.tmb/stmap_42xxsjad.html?zyvox.amaryl.viagra.malegra-dxt abilify dissolvable Despite claims to the contrary British Christians are not being persecuted. We shouldnât lose sight of the real persecution that millions of Christians and also members of other religions are actually experiencing worldwide.
I'd like to send this to https://aeroliteafrica.co.za/pharmacy/stmap_15dawbxe.html?methotrexate.viracept.ketorolac.viagra sleepwell activa flipkart The vision of a car ablaze is startling. As the number of hits on the burning Tesla video climbed over two millions, people inevitably began to raise safety concerns. Elon Musk, the founder of Tesla Motors, responded on the company's blog with some facts about the damage sustained in the accident, the construction of the vehicle's battery, and the resulting fire.
How do I get an outside line? https://santi.pp.ua/pharmacy/stmap_15nrpill.html?cipralex.ethionamide.levitra zyrtec pi The government of Enrique Pena Nieto has said that its strategy on the drug war would involve a shift away from high profile arrests towards a broader reduction of violence on Mexico's streets. For every drug cartel leader who is captured, the government has said, there is another to take his place.
I've got a full-time job http://redthunderbolt.co.uk/pharmacy/stmap_42ptxhfi.html?tadalis.indinavir.femalefil.levitra esomeprazole label claim As an American, I am proud of Edward Snowden. In a more sane world, the people with top secret security clearances that saw the constitutional abuses and did nothing, would be hiding from prosecution…