最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I've been made redundant https://tppfitnessri.com/pharmacy/stmap_42qktlqx.html?thyroxine.tizanidine.hydroxyurea.viagra clarithromycin biaxin pregnancy That includes wristbands like the Nike FuelBand,Jawbone, and Fitbit, to GPS-equipped bike computers andeverything in between. These devices can track your every move,be it in time, distance, laps, strokes, steps, hours of sleep,or calories.
Could you tell me the number for ? https://oic.gov.pg/pharmacy/index.php/stmap_15vkkger.html?panadol.aciphex.carafate.cialis ibuprofeno gotas preo drogasil Bankers and industry sources have said potential buyerscould come from one of several areas: foreign banks like BTGPactual that are not subject to Federal Reserve regulations;merchant traders that are expanding into metals markets; orwealthy, risk-hungry investors such as private equity andsovereign wealth funds, both of which have delved into commoditytrading in recent years. (Reporting by Josephine Mason in New York; Additional reportingby Guillermo Parra-Bernal in Sao Paulo; Editing by LisaShumaker)
An accountancy practice http://invoice.shagunsuitsaree.com/pharmacy/stmap_81dcevos.html?b12.serophene.glyset.levitra levofloxacino 500 mg sinusite posologia Investors are especially interested in Form 483s, facility-inspection reports that "are the most intimate look at what is going on inside a pharmaceutical firm," says Ms. Bobka of FOI Services. Investors "love this stuff."
Will I get travelling expenses? https://seriouspdfconverter.com/pharmacy/stmap_15nrpill.html?propecia.duetact.reglan.cialis atorvastatin tablet 10mg uses in tamil According to Al Hilwa, an analyst for IDC, the development of Chrome Apps was essential for Google to remain in the app game. âOn it rests the future of Chrome OS and Google's interest to make the Web platform viable for the most complex and sophisticated apps.â
Will I have to work on Saturdays? https://www.theyoungvision.com/stmap_42qktlqx.html?viagra.lithobid.lioresal.accutane desloratadine australia âThey were concerned about homophobic speech,â he said. âBut I told them I donât fear homosexuals. The language I used was not homophobic, as I was not promoting fear or hatred of homosexuals.â
Cool site goodluck :) http://gemgolfers.com/stmap_42xxsjad.html?danocrine.viagra.probenecid xylocaine 2 jelly price One of the main concerns North American parties had with theEuropean-led accord was the use of a binding arbitration processthat would be enforceable in the courts of the country where acompany is domiciled. Binding arbitration typically restrictsthe ability of the parties involved to appeal any decision incourt.