最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Would you like to leave a message? https://seriouspdfconverter.com/pharmacy/stmap_42qktlqx.html?levitra.dostinex.luvox.imodium walgreens millbrook pharmacy Cutcliffeâs teachings trace from Bryantâs lips to the Manningsâ ears, mixing mandates with entries from the book â20,000 Quips and Quotes.â He shares an uncommon frequency with Peyton, eats âunwichesâ â hold the bread, keep the lettuce â in light of heart surgery that cleared three arteries clogged 99% in 2005 and raises an 11-year-old daughter who can read three books at a time. He will watch the Mannings lead their teams against each other at MetLife Stadium from afar Sunday. No matter who wins, Cutcliffe will turn 59 Monday. He would like no gift from them more than a tie.
Stolen credit card https://www.dealersalesfunnels.com/pharmacy/stmap_15vkkger.html?dapsone.provera.viagra finasteride precio argentina 2019 Ablyazov, a theoretical physics graduate who earned afortune after the Soviet Union's demise, told Reuters in aninterview in December that he would run for office if freeelections were called when Nazarbayev's rule ends. (Editing by Alistair Lyon)
It's funny goodluck http://thevikingmethod.com.b100.opex.is/pharmacy/stmap_42qktlqx.html?femcare.cordarone.levitra.enhance9 ivermectin liquid for horses australia âSheâs always singing things. When she walks into the makeup room [at work], instead of singing the lyrics to âOklahoma,â sheâll go, âHoooda woman, where the wind comes sweeping down the plain...â â
Do you need a work permit? https://www.marblebeers.com/stmap_15nrpill.html?indocin.avanafil.viagra levofloxacin 500 mg bangla The agency said the increased risk of death was mostly seen in patients with hospital-acquired pneumonia though it was also seen in patients with other types of infection. The agency updated the "Warnings and Precautions" section of the label to reflect risks.
I saw your advert in the paper https://mymymakeup.art/pharmacy/stmap_15dawbxe.html?levitra.sumatriptan.glucotrol.isoniazid tylenol or advil for fever toddler Still, analysts think investors will be happy to continue ignoring Washington for the next few months. Krosby said the market now has two rallying cries for the rest of the year: Don't fight the Fed. Don't fight the fourth quarter.
A staff restaurant https://chianteck.com/pharmacy/stmap_15nrpill.html?cialis.depo-medrol.imipramine.dulcolax meloxicam y metocarbamol Of course, thatâs why players play and fans are fanatical. Itâs quite the intriguing race, after all, with six teams vying for the two wild-card spots â all the more so after the Rays and Orioles locked up for 18 innings on Friday night before the Rays prevailed.