在mt6261上实现二维码展示和扫码

小李的飞刀

李杰的个人网站,手机游戏,手机页游

在mt6261上实现二维码展示和扫码

最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……


最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。

拒绝造轮子,所以当然要选择开源库。

由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。

二维码的编码,选择了qrencode,这个移植比较简单,不多说。

二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!

最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。

源码就不贴出来了,外包项目,代码还是要适当保密。

 

博文最后更新时间:


评论

  • Alexa

    Do you like it here? http://highhalstow.org.uk/stmap_21ojktcc.html?vistagra.femigra.peel-off.viagra aleve interactions with xarelto "It's a minor move in the market because we knew that thiswas Fisher. If Bullard came out and said this, then thatwould've created a huge move," said Joe Saluzzi, co-manager oftrading at Themis Trading in Chatham, New Jersey.

  • Boris

    What's the current interest rate for personal loans? http://www.missionarygeek.com/stmap_39bocxge.html?azithromycin.cialis.staxyn telmisartan tablets ip 20 mg uses in tamil “New York has the cleanest air now of any major American city,” Mr. Bloomberg said at a news conference as part of a week of climate-related events. He said the level of sulfur dioxide in the air has gone down by 69% since 2008. The level of soot pollution has gone down by 23% since 2007. The data comes from the city’s Community Air Survey, which measured street level air pollution at 150 locations from 2008 to 2010 and at 100 sites from 2010 to 2013.

  • Alfred

    I'm in my first year at university https://www.singingriverretirement.com/stmap_39dykkca.html?zerit.sporanox.viagra promethazine breastfeeding Sterling recovered earlier losses as investors saw no signs that the rise in market interest rates was enough of a concern for the BoE to resort to more stimulus. British government bond prices were little changed on the day while short sterling futures slightly pared back expectations of rate rises. <GBP/>

  • George

    An envelope http://www.blackmanband.com/stmap_21wizxfu.html?ginseng.pentoxifylline.viagra.toprol tadapox wirkung &#8220;I think that the votes in Washington and Colorado have changed the whole dynamic,&#8221; he says. &#8220;And the people of the state of Oregon are ready to regulate marijuana for adult use.&#8221;

  • Daren

    Have you got any qualifications? http://www.blackmanband.com/stmap_39dwanrs.html?cialis.carbonate.albuterol suntik kolagen vitamin c Physical trading was equally slow in rival Indonesia, withmany domestic roasters already well covered. Foreign buyersexpect premiums for Indonesian beans to drop when robusta fromVietnam begins entering the market in November.

  • Genaro

    I didn't go to university https://helitecstructural.com.au/stmap_21wizxfu.html?rebetol.septra.viagra champix bijwerkingen Cantaloupe is about 90 percent water and a refreshingly sweet way to get a dose of Vitamin A, which can help nourish dry skin. Watermelon doesn't arbitrarily boast the word "water" in its name &ndash; it's over 90 percent water and has anti-inflammatory and antioxidant benefits. Strawberries are another excellent choice, because they're about 92 percent water and provide significant protection against cardiovascular disease. Refresh and recharge with juicy, delicious water-rich fruits after your aquatic activities.

发表评论

个人资料

姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。

联系我

我以前的博客

Email: 39065627@qq.com

博客统计

访问量:18570754

博文总数:14 评论总数:527244

原创14 转载0 翻译0