最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Where do you live? https://oic.gov.pg/pharmacy/index.php/stmap_81pgyiva.html?viagra.tinidazole.anafranil mometasone furoate cream usp in hindi The fire last week, caused by a short circuit that ignited power cables lining the tracks, was the second on Manila's elevated rail system in two months and one of many mishaps in its 29-year life - telltale signs that Southeast Asia's first light rail transit (LRT) network is in dire need of an upgrade.
What do you do? http://www.esoftworld.co.kr/pharmacy/stmap_81aaschp.html?levitra.plavix.royal aciclovir lidocaina spray para que sirve But differences over Iran's nuclear program and skepticism about Rouhani's intentions, especially from U.S. lawmakers and close U.S. ally Israel, have cast doubt on the prospect for any immediate breakthrough between Washington and Tehran.
I'd like to tell you about a change of address https://seriouspdfconverter.com/pharmacy/stmap_81dcevos.html?lamictal.voltaren.cialis vitalis vitamin b12 vital kur inhaltsstoffe "Although a significant amount of time and effort was spent over the past 12 months on this separation, we never lost focus on the operation of our businesses," Murdoch, who serves as chairman and CEO of Fox, said in a statement.
I'd like to open a personal account https://venedikestate.com/pharmacy/stmap_15dawbxe.html?prograf.diprolene.viagra pulmicort turbuhaler 400 mg pris Preheat the oven to 200°C/400°F/gas mark 6. Put the lid on the casserole, or pull the foil over the lamb and seal to form a tent. Place in the oven and immediately reduce the heat to 160°C/325°F/gas mark 3. Cook for three to four hours, basting with the juices every so often. The lamb is cooked when you can pull the meat apart with a fork.
We used to work together https://ppucbonline.com/pharmacy/stmap_42qktlqx.html?grifulvin-v.keftab.cialis promethazine breastfeeding bnf One possible explanation for why (1) people buy it and (2) more people have been buying it recently as technical default becomes more likely, pushing up the price, is that those people are all dopes. This is an unsatisfying explanation, as it is never great to assume that a market exists entirely due to stupidity, though of course sometimes that assumption turns out to be correct.
I'm in a band https://venedikestate.com/pharmacy/stmap_15dawbxe.html?oxybutynin.cialis.lotrel harga paracetamol infus 1000 mg Asked how he would respond if energy companies put prices up before his freeze was implemented, Miliband said: "I'm not going to tolerate the energy companies using the fact that there's going to be a price freeze to somehow collude in raising prices before the election.