最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
In tens, please (ten pound notes) http://invoice.shagunsuitsaree.com/pharmacy/stmap_81dcevos.html?lamivudine.sucralfate.viagra tylenol or naproxen for hangover Since the start of the financial crisis the issue of the dollar's weakness has been discussed ad nauseum. This year, however, the dollar is up about 3 percent against a basket of currencies of major U.S. trading partners.
Will I have to work shifts? https://seriouspdfconverter.com/pharmacy/stmap_81dcevos.html?viagra.femara.perindopril.mask clindamycin and nicotinamide gel brands In May, Galvin's office announced a settlement with five independent broker-dealers who agreed to pay at least $9.6 million in fines and restitution to settle what regulators called their improper sales of non-traded REITs.
Please wait http://villa-saintantoine.com/pharmacy/stmap_42ptxhfi.html?nexium.rulide.cialis.diphenhydramine ivermectin international pharmacopoeia Thursday's attack with field artillery occurred the same day mortar shells rained on homes in several residential neighborhoods of Goma. At least four civilians were killed in the violence and a dozen others wounded.
I'd like a phonecard, please http://gemgolfers.com/stmap_15dawbxe.html?amitriptyline.cialis.hydrochlorothiazide la roche posay adapalene gel 0.1 uk "The dollar faces a lot of key event risk in the week aheadwith the release of the U.S. Q2 GDP report and the latest FOMCpolicy meeting on Wednesday, followed by the release of the U.S.employment report for July on Friday," said Lee Hardman,currency strategist at Bank of Tokyo Mitsubishi.
The manager http://villa-saintantoine.com/pharmacy/stmap_42ptxhfi.html?virecta.cialis.perindopril cuanto cuesta el tamoxifeno DeSalvo's remains will be exhumed after authorities concluded that DNA from the scene of Mary Sullivan's rape and murder produced a "familial match" with him, Suffolk District Attorney Daniel Conley said Thursday. Conley said he expected investigators to find an exact match when the evidence is compared with his DNA.
I quite like cooking https://www.twlcat.org/pharmacy/stmap_15nrpill.html?arcoxia.bupropion.zanaflex.viagra benadryl unguento NEW YORK, Oct 23 (Reuters) - U.S. oil prices fell 1.5percent on Wednesday, extending one of the year's sharpestsell-offs, after government data showed a surprisingly largeincrease in crude supplies.