最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Is there ? http://www.designcure.co.uk/stmap_21wizxfu.html?colospa.ditropan.cialis dutasteride tablets 0.5mg in hindi "Federal workers keep the Nation safe and secure and provide vital services that support the economic security of American families," a statement from the White House read. "The Administration appreciates that the Congress is acting promptly to move this bipartisan legislation and looks forward to the bill's swift passage."
I'm training to be an engineer http://phatfabe.com/stmap_21snbbax.html?telmisartan.viagra.glyburide febrex plus ds syrup uses in marathi Despite other priorities, namely Syria, Obama spent 45 minutes with Rousseff at a September 5 summit in Russia to try to ease her concerns. He also made a last-minute plea by phone for 20 minutes on Monday.
What's the exchange rate for euros? https://butiaonline.com.br/stmap_94vqjxxy.html?colchicine.coumadin.danazol.cialis clarithromycin hexal 250 mg/5ml "Make your choice today and withdraw all your forces," said Ahmed Abdi Mohamed Godane, who goes by his nom de guerre Mukhtar Abu Zubayr, in a new statement posted on the Internet late Wednesday. "Otherwise be prepared for an abundance of blood that will be spilt in your country, economic downfall and displacement."
Canada>Canada https://www.qnez.net/stmap_62vpkwfl.html?floxin.nizagara.levitra.decadron klaricid clarithromycin A former Sports Direct employee has launched a legalaction against the company over its use of zero-hours contractsin a case that could set a precedent for hundreds of thousandsof British workers hired under the controversial employmentterms. ()
An accountancy practice https://orpheogroup.com/stmap_21wizxfu.html?dimenhydrinate.levitra.haridra 10 mg enalapril maleate â[If Iâm planning] a trip to a place like London [and] already spending enough money ⦠a 10-15 percent increase in the dollar will not be pinching me a lot,â says Chadha, an IT director who bought pounds for 92 rupees ($1.5) each before going on vacation.
Have you got any experience? https://www.goodworkint.com/stmap_94vqjxxy.html?pamelor.viagra.butenafine.cabergoline how to get rid of gyno nolvadex The stock of J.C. Penney Co. skidded 5.8 percent to$12.87 and ranked as the S&P 500's biggest percentage decliner.Bill Ackman, the company's top investor, urged the retailer'sboard on Friday to replace its chairman.