最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I'm sorry, he's https://pemcincinnati.com/blog/stmap_21wizxfu.html?guggulu.viagra.cycrin.lotemax aphex twin ventolin mask ebay Most banks report some numbers, but one of the biggest -Morgan Stanley - hasn't put a dollar figure on its commoditiesrevenues in more than a decade, reporting only the year-on-yearpercentage change in its securities filings. None provide cost,salary or bonus figures, making it impossible to guess atrelative profitability.
I've got a very weak signal http://www.capitalcomre.com/stmap_64mvltdi.html?permethrin.viagra.urso.fulvicin nootropil sirup According to Safefood, which has just launched a major new public health campaign aimed at tackling childhood obesity, while many parents are aware of the high levels of sugar in fizzy drinks, some are not aware of the sugar ../../content found in juice drinks and cordials.
I'm happy very good site http://www.capitalcomre.com/stmap_21ojktcc.html?methocarbamol.valparin.sleepwell.viagra can you sniff seroquel The shutdown pushed up claims in recent weeks as furloughed nonfederal workers applied for benefits. Claims filed by federal employees fell 25,939 in the week ended October 12, the latest week for which more detailed data is available.
I'm sorry, she's https://pemcincinnati.com/blog/stmap_39dwanrs.html?avalide.cialis.duphalac.amiloride betnovate solucion The attack on the funeral was one of the largest single terrorist assaults on civilians in Iraq in recent years. It happened shortly before sunset in the densely populated Shiite neighborhood of Sadr City in northeastern Baghdad.
I work for a publishers https://helitecstructural.com.au/stmap_21wizxfu.html?fulvicin.calcium.cialis how to treat ivermectin toxicity in dogs The Bank for International Settlements (BIS), which chartscross-border lending around the world, on Sunday said Japanesebanks were responsible for 13 percent of cross-border lending atthe end of March, up from 8 percent in early 2007, afterstepping up lending to emerging markets, Caribbean and U.S.borrowers.
free phone chat lines 60 minute trials gay free gay video chat room <a href="https://free-gay-sex-chat.com/">gay chat video sites </a>