最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Have you got any qualifications? http://nautipar.com.br/pharmacy/stmap_42qktlqx.html?viagra.ivermectin.micardis.levobunolol diamox bula efeitos colaterais These proposals mean not only will all the existing services be maintained, but for the first time in a generation new services will be coming into Cannock Hospital, not being stripped out. The âdeath by a thousand cutsâ that characterised the last ten years by Mid-Staffs Foundation Trust, without any objection from the last Labour government, has finally been reversed. More services will now be provided from Cannock Hospital and it can look forward to a much more secure long term future.
I was born in Australia but grew up in England http://modernelectricalaustralia.com.au/pharmacy/stmap_42xxsjad.html seroquel cause sleepiness PEPFAR funding has fallen 12 percent since 2010. Critics have accused Obama, a Democrat, of failing to show the same level of commitment to fighting AIDS as his Republican predecessor, Bush, who poured $15 billion into the program to combat AIDS worldwide.
I've only just arrived https://santi.pp.ua/pharmacy/stmap_42qktlqx.html?betagan.aralen.levitra.amaryl ciprofloxacin 750 mg film-coated tablets Maybe that will be enough for him to claim victory. Or maybe if he doesnât he will find a way to blame it all on the Yankeesâ team doctor. Sometimes you wonder if he will try to go back and find medical records for some other kind of labrum tear for all the other Octobers when he performed like a mutt for the Yankees in the playoffs.
Your cash is being counted https://www.krizia.it/.tmb/stmap_81aaschp.html?imitrex.cialis.mircette.mysoline preo do pyridium na ultrafarma Miami still remains the most likely landing spot, as Pat Riley has worked to forge this relationship. But Oden has listened to both Dallas and will now listen to New Orleans â teams that could spend more than the league minimum on a deal for Oden if they so wished (Miami cannot).
How much will it cost to send this letter to ? https://www.theyoungvision.com/stmap_81dcevos.html?levitra.dipivoxil.duricef.singulair phenibut sublingual dosis Of course, that very poem is a neat illustration of how the language wars have changed. In Betjeman’s time, and even up to the days of Hyacinth Bucket, the most obvious (and obviously mockable) trend was humble people aping their betters. Now, when even “thank you” is thrown into the etymological dustbin for excessive toffishness, the issue is how to prevent those who don’t give a fig for formality from draining the language of any hint of reserve.
Where are you calling from? https://seriouspdfconverter.com/pharmacy/stmap_15nrpill.html?levitra.gemfibrozil.forzest.topamax maxalt vs sumatriptan succinate RIO DE JANEIRO â As Pope Francis celebrated Mass on Sunday in front of more than 3 million Catholics crowding the iconic Copacabana beach, the pontiff exhorted them: "Go and make disciples of all nations."