最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
One moment, please http://invoice.shagunsuitsaree.com/pharmacy/stmap_81dcevos.html?vpxl.yagara.levitra.ornidazole zofran zydis "They got it under control very quickly and shut down the scene," said Martini, who urged listeners on a local radio station hours after the shooting to be sure all guns in their homes were safely locked away.
Will I get travelling expenses? http://cnpcl.com/stmap_15nrpill.html?pilex.gyne-lotrimin.colchicine.levitra spironolactone weight loss or gain The rebels briefly seized Goma, a city of nearly 1 million people, last November, before withdrawing under international pressure and in return for a promise of peace talks with the government. The talks in neighbouring Uganda have frequently stalled and appear to have made little progress since March.
An envelope https://tppfitnessri.com/pharmacy/stmap_42qktlqx.html?dimenhydrinate.ocuflox.viagra.simvastatin ciprodex 500 tablets Chinese President Xi Jinping has made fighting graft a top theme of his new administration, and has specifically targeted extravagance and waste, seeking to assuage anger over corruption and restore faith in the party.
Who would I report to? https://iclusters.in/pharmacy/stmap_42qktlqx.html?levitra.dostinex.pfiagara.minocycline universalpetmeds.ca reviews More than a decade has already passed since Wilson cold-bloodedly executed Andrews and his partner James Nemorin during a undercover buy-and-bust operation on Staten Island aimed at taking illegal guns off the streets.
I'd like to open a personal account https://hingolnationalpark.com/pharmacy/index.php/stmap_42ilbchw.html?cloxacillin.dapoxetine.keflex.levitra carbamazepine coupon Of those waiting over three months for a colonoscopy, the numbers waiting between three and six months have fallen by 63%, to 668, those waiting six to nine months have fallen by 79% to 110, while the numbers waiting 9-12 months have dropped by 47% to 56.
magic story very thanks https://www.karasueksiogluemlak.com/pharmacy/stmap_81aaschp.html?probenecid.cialis.prozac.vicerex effexor 37.5 chemist warehouse UK offshore production still is in steep decline despite therecord investment and new field openings. Big oil companies suchas Shell and Exxon are looking mainly furtherafield for new exploration opportunities.