最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
We need someone with experience http://josefinearenius.se/stmap_15dawbxe.html?levothroid.viagra.retin-a.perindopril cipla loperamide dosage A treaty that banned all international ivory trade in 1989 added a loophole in 2008, allowing for the sale of domestic ivory in China and elsewhere in the Far East, where thereâs vast demand for it and wholesale prices for the âwhite gold of jihadâ have skyrocketed, from about $150 a kilogram in 2008 to over $5,000 last year.
Do you like it here? https://saaralfoods.com/stmap_15nrpill.html?combivir.gyne-lotrimin.cordarone.cialis buy avapro baikal-pharmacy LONDON, Sept 13 (Reuters) - The dollar and U.S. Treasuryyields rose on Friday on a Japanese report that Lawrence Summerswould soon be named to head the Federal Reserve, as he would beexpected to favour a faster cutback in its stimulus programme.
Whereabouts in are you from? http://nadong.go.th/stmap_38ilarsy.html?viagra.mircette.keftab.triphala allegra help hives "Based on this small study, we can't say that it doesn't matter whether you eat breakfast as far as weight control goes for the average person," said Nancy Copperman, director of public health initiatives at the North Shore-LIJ Health System in Great Neck, N.Y. "There are many reasons why you should eat breakfast that are not related to caloric intake."
Do you like it here? https://asianwhiteskin.com/stmap_15nrpill.html?digoxin.levitra.acai-berry can i take claritin with amoxicillin Many emergency room visits may also be caused by drug interactions â between both prescription drugs and over-the-counter medications. Doctors and pharmacists need to take time to explain which drugs can have a harmful effect on seniors, and be sure not to prescribe those known to be unsafe in the elderly population.
Is it convenient to talk at the moment? https://saaralfoods.com/stmap_72yxfzej.html?lamivudine.levitra.levofloxacin.naprelan pantoprazole and domperidone tablets uses in hindi “Basically, we had the leader becoming a follower,” said Italian economist Tito Boeri. “And that is going to have an important impact on political decisions and Italian political life in the future and in economic policy as well. Because, really, many of the threats of blackmail that Berlusconi was activating in the past can no longer be credible.”
We'd like to offer you the job https://mokameleman.com/stmap_38ilarsy.html?selegiline.remeron.calan.viagra generic for detrol la 4mg Wearing a Carolina Herrera gown, 'Mad Men' beauty Christina Hendricks exchanged vows and engraved platinum Tacori wedding bands with funnyman Geoffrey Arend at downtown New York City restaurant Il Buco on Oct. 11, 2009.