最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I'd like to send this to http://www.lamingtonhotelmotel.com.au/stmap_21ojktcc.html?diovan.mega.triphala.cialis voltaren tabletten rezeptfrei schweiz What is happening in East Harlem will soon be occurring in other part of the city, Hyde said. The North Shore-LIJ Health System will be opening a 24/7 emergency care facility next year in Greenwich Village. The $110 million facility is being built at the former location of St. Vincentâs Hospital, which closed in April 2010.
i'm fine good work http://www.missionarygeek.com/stmap_39bocxge.html?clarithromycin.viagra.advair ibuprofen tablets 200 mg bp ethics "There was a lot of bias," Burch told Judy Woodruff of PBS. "Part of the business plan when I started the company was that we wanted to start a foundation, and when I said that to people when I went to raise money, particularly men, they said don't ever use business and social responsibility in the same sentence," Burch revealed.
What's the last date I can post this to to arrive in time for Christmas? http://www.missionarygeek.com/stmap_64mvltdi.html?sotalol.macrobid.nebivolol.levitra detrol la coupon Ed Greissle, a single dad from Washington Heights, keeps his son out of trouble by keeping him busy. That means Swedish classes, violin and piano lessons, karate, basketball and soccer practice. âItâs not safe for kids to play in the street anymore,â says the Nysingleparents.org founder. âEvery minute has to be scheduled.â
A financial advisor https://toddmillerlaw.com/stmap_64kncqzz.html?gemfibrozil.tadarise.viagra budesonide nebulizer brand name President Hamid Karzai issued a plea to the Taliban to respect the Islamic holy month of Ramadan, which begins Wednesday in Afghanistan. He called on the movement to "take the way of peace, compassion and kindness and stop killing people."
What sort of music do you like? https://www.gmfnouvellebeauce.com/stmap_39dykkca.html?cialis.lisinopril.furacin cicloferon aciclovir crema para que sirve Both of these banks are well within TBTF territory with balance sheets over half the size of their host country’s GDPs. I am not so sure that there is enough capital in the world to account for the huge risks these institutions have taken. DB is the largest holder of derivatives in the world followed closely by Barclay’s. A few billion dollars, euros, pounds are quatloos will not make a difference when the bank has several trillion dollars in derivatives exposure. From recent experience with capital injections dating back to the GFC in 2008, once a bank’s balance sheet begins eroding, it does not stop until it becomes insolvent.
There's a three month trial period https://www.voyages-gallia.fr/stmap_64kncqzz.html?cialis.adapalene.finax.acarbose trimetoprima/sulfametoxazol (bactrim, septra u otros Grout, who is in his mid-thirties, declined to answer questions from a Reuters reporter in Sarrazac on Tuesday, but a source with knowledge of the matter has said that he will offer to face the charges in the United States on the condition that he is granted bail.