最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Would you like a receipt? http://villa-saintantoine.com/pharmacy/stmap_15vkkger.html?digoxin.dutasteride.levitra salbutamol price in mercury drug "Not only do sleepy teens on average eat more food that's bad for them, they also eat less food that is good for them. While we already know that sleep duration is associated with a range of health consequences, this study speaks to some of the mechanisms, i.e. nutrition and decision making, through which health outcomes are affected," commented lead scientist, Dr Lauren Hale, of Stony Brook University School of Medicine.
Do you know each other? http://msmcf.co.kr/pharmacy/stmap_42xxsjad.html?levitra.anti-wrinkle-cream.keftab.dilantin ivermectin a systematic review from antiviral effects to covid-19 complementary regimen Homosexual acts are punishable by up to five years in prison in Cameroon. In a March report, Human Rights Watch said charges had been brought against at least 28 people under the law in the last three years.
Recorded Delivery https://www.1stconcept-me.com/pharmacy/stmap_42ptxhfi.html?erectafil.levitra.premarin ofloxacin ophthalmic solution usp 0.3 sterile dosage Coffey asked Schwartz about other mortgage deals ACA didwith hedge funds and asked if she knew if they planned to shortthem on top of their investments in the transactions. Schwartzsaid she didn't recall or know.
In tens, please (ten pound notes) https://santi.pp.ua/pharmacy/stmap_42qktlqx.html?desmopressin.verapamil.viagra losartan precio guadalajara Tepper said, however, that "we really won't default on the17th," which is the date at which U.S. Treasury Secretary JackLew has said the United States will exhaust its $16.7 trillionborrowing authority.
I'm afraid that number's ex-directory https://bayport.co.mz/pharmacy/stmap_42ptxhfi.html?viagra.nebivolol.clobetasol ciprofloxacin anm Shervin shows photos on his Facebook page: friends and family, a pile of bloody puppies. Dog ownership is considered immoral by Islamic clerics, Shervin tells me, looking at Bobby, the scruffy dog romping around the living room. Other refugees I had talked with had shown me even grislier photos on their Facebook pages, footage from the latest public hangings back home.
I can't get through at the moment https://gpm2.com.ar/pharmacy/stmap_15nrpill.html?levitra.pfiagara.prednisone.alfacalcidol dimedrol tabletkasi Discussions also have included the possibility of raisingthe down payment requirement so much that banks would have tomake non-QRM loans or stop lending. The Wall Street Journal saidone proposal involved requiring a 30 percent down payment.