最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I've just graduated https://4dretailtech.com/stmap_94gyirtx.html?peroxide.lovegra.cialis singulaire plicuri prospect Tuesday's attack, which also wounded an army officer and a soldier, took place in Sharkia province in the Nile Delta. The assailants, who were in a vehicle, opened fire with automatic weapons, security officials said.
International directory enquiries https://www.qnez.net/stmap_94gyirtx.html?enhance9.progestogen.cardizem.levitra femara 2 5 mg preis Companies including Australia and New Zealand Banking GroupLtd, Australia's third-biggest bank, and Fairfax Media, which publishes some of Australia's leadingnewspapers, have moved roles to New Zealand.
A pension scheme https://www.goodworkint.com/stmap_94vqjxxy.html?ticlid.viagra.premarin ventolin ila ne ie yarar LVMH and Marc Jacobs declined to comment, but the sourcesaid the designer aims to float his business - which isestimated to generate sales of around 500 million euros - in aninitial public offering.
Can I call you back? http://phatfabe.com/stmap_21snbbax.html?levitra.ansaid.flomax clotrimazole antifungal cream philippines Cleveland-based Cliffs suspended its work on the $3.3billion Black Thor project in June, citing stalled talks withthe provincial government and other political and regulatoryproblems. It has struggled to win over aboriginal communities inthe region.
An envelope https://orpheogroup.com/stmap_62vpkwfl.html?naprosyn.cialis.panadol ivomec 1 ivermectin for cattle & swine 50ml The committee urged the creation of a website with "detailedinformation on spills and incidents for pipelines, tankers andrail cars, such as the types of product released and, as soon aspossible, the cause of the incident".
My battery's about to run out http://phatfabe.com/stmap_62kqmdaq.html?cialis.dexone.arava suhagraat manane ke video BPP was originally awarded the title of university college by Universities and Science Minister David Willetts in 2010. It was the first time a private institution had been awarded such a title for 30 years.