最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I'm not interested in football https://lenzoutlet.com/pharmacy/stmap_42qktlqx.html?primidone.viagra.azulfidine.famvir voltaren stikkpiller The slain couple were the parents of two children, a 9-year-old son and a 14-month-old daughter, who were in the store at the time of the murders, according to the Advocate Messenger. The boy dialed 911 after the killer left the premises.
A packet of envelopes https://ppucbonline.com/pharmacy/stmap_15nrpill.html?oxytrol.citalopram.yasmin.cialis tretinoin cream usp in hindi Nancy Caton, managing director of Carson Wealth ManagementGroup's San Francisco Bay office, was surprised about how littleinterest clients have shown in investing in Twitter, given thefrenzy she saw around Facebook.
Do you play any instruments? https://gpm2.com.ar/pharmacy/stmap_81dcevos.html?famvir.medroxyprogesterone.cialis.norvir levofloxacino 500 mg sinusite posologia It was unclear from the clip if Smith actually made contact with Incognito, who wouldnât clarify that point, saying he wanted to move on to Saturdayâs exhibition home opener against Tampa Bay. Incognito also would not say if anything precipitated the helmet-swinging.
I'd like a phonecard, please https://hayathasardanismanligi.com/pharmacy/stmap_42xxsjad.html?diarex.tretinoin.aggrenox.levitra ivermectin is effective for covid-19 meta analysis of 19 studies Until recently, a top-five finish at the Scottish might have been enough. However the qualification rules have been tightened up, so now it is only the victor who will be invited to spend the week in East Lothian.
I don't know what I want to do after university https://oic.gov.pg/pharmacy/index.php/stmap_15vkkger.html?levitra.luvox.amantadine harga solinfec ketoconazole 200 mg It is indeed the case that violent jihadism is in large part the fault of the CIA (letters, 23 January). The massive funding that went into the Cold War operation in Afghanistan bore fruit across the world, as the international brigade of jihadists funded and trained by the Americans and the Saudis, and facilitated by General Zia and the Pakistani ISI, dispersed to virtually every corner of the Muslim world.
I'm a member of a gym https://venedikestate.com/pharmacy/stmap_81aaschp.html?shallaki.adefovir.cialis.ovral promethazine injection iv Chief marketing and strategy officer of Jumio, Marc Barach shared insights from the survey results. In a statement, he said that findings of the study indicated that most consumers perceive smartphones as extension of their selves. It should also be noted that most users of the devices now take and use the phones wherever they go, and even in the most unlikely situations.