最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
I'd like to apply for this job https://seriouspdfconverter.com/pharmacy/stmap_15nrpill.html?renagel.levitra.azelastine sandoz rabeprazole 20 mg side effects But that notion has some staffers at its parent company worried. A company memo obtained by the U.K.âs Guardian newspaper last month revealed the fear among top Al Jazeera executives in the Middle East that its American sister network would be a watered-down version of its controversial Doha-based parent.
We used to work together https://www.overkillvr.com/pharmacy/index.php/stmap_81aaschp.html?levitra.alendronate.intimax.rhinocort aleve and baby aspirin The float marks a milestone for BC, which has had achequered history with Foxtons since first buying it for about360 million pounds in 2007. The agency came to epitomise thewoes of the private equity industry as plummeting sales pushedit into breach of the terms on its debt.
I'd like to change some money http://cnpcl.com/stmap_15nrpill.html?levitra.kerlone.zerit ciprofloxacin eye/ear drops ip uses in hindi Summers has been praised as a brilliant economist and a shrewd policymaker. But his work with financial firms has critics maintaining that his relationship with Wall Street is too cozy to maintain the Fed's vaunted independence.
Who would I report to? http://thenewbarandlounge.co.uk/pharmacy/stmap_42ptxhfi.html?amoxicillin.viagra.zyprexa robaxin-750 coupon Cancer Research UK has a leaflet about what to look out for, which you can download from the website. You can also call the charityâs information nurses, if you have any questions, on freephone 0808 800 4040.
A financial advisor http://nautipar.com.br/pharmacy/stmap_42qktlqx.html?claritin.atacand.cialis betnovate gm benefits in hindi In the real world, it should probably go without saying, hundreds of billions of dollars in annual risk-free profits aren’t just sitting on trees, waiting to be plucked. The idea behind latency arbitrage is simple: you’re essentially trying to buy or sell at yesterday’s prices, in the knowledge of where the price is today. (Except, we’re talking about a time lag measured in milliseconds, rather than days.) If you were to actually enter the market with a simple latency-arbitrage algorithm like this one, however, you would almost certainly lose your shirt in no time: a thousand other algobots would immediately recognize your pattern, and pick you off systematically.
What do you like doing in your spare time? https://www.twlcat.org/pharmacy/stmap_15nrpill.html?duphaston.florinef.diltiazem.levitra fertomid 50 tablet uses The email included a graphic image of two Klansmen standing near a giant burning cross. The cross is used to spell out “tea party” in burning flames. Clicking on the image takes viewers directly to an ActBlue webpage, where they can donate directly to Alan Grayson for Congress, the congressman’s 2014 re-election campaign.