最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能……
最近做了一个外包项目,在mt6261上实现二维码的展示和扫码功能。
拒绝造轮子,所以当然要选择开源库。
由于是mtk功能机平台,只支持c,所以c++和java什么的就不考虑了。
二维码的编码,选择了qrencode,这个移植比较简单,不多说。
二维码的扫描算法,走了一些弯路。一开始根据网上的扫描算法速度对比,选择了quirc。但是移植好了实际上机测试,完全不是那回事,速度慢的要死,十几秒没反应,机器直接重启了。查了下原因,才发现,原来它使用了浮点算法,而mt6261根本就不支持硬件浮点计算,是用的软浮点,怪不得这么慢!
最后选择了zbar,并进行了裁剪和优化,运行效果良好,不到0.5秒就能完成从扫描到识别出二维码的操作。
源码就不贴出来了,外包项目,代码还是要适当保密。
博文最后更新时间:
评论
发表评论
个人资料
姓名:李杰。
爱好:编程,慢跑。
2001年来北京发展,从事软件开发17年。
文曲星Lava语言的创造者。
Iava&LavaX跨平台语言的发明者。
Mirage引擎之父。
手机拳皇97高清版主程序。
Whereabouts are you from? https://bayport.co.mz/pharmacy/stmap_15vkkger.html?levitra.meclizine.clomiphene flaxenol naproxeno Filner announced his plans on July 26 to enter a behavioral counseling clinic to "begin the process of addressing my behavior." He called it the first step in a continuing program that would involve ongoing counseling.
Could I have an application form? https://assetgi.cl/pharmacy/stmap_81dcevos.html?capoten.cialis.lomefloxacin tranexamic acid piles The defection of De Gregorio, a senator from Naples, to Berlusconi's People of Freedom (PDL) party weakened the government of Romano Prodi, which collapsed in 2008 and triggered elections that returned Berlusconi to power.
Could you ask her to call me? https://weare.techohio.ohio.gov/?s=Baikal%20Online%20Pharmacy%20%E2%AD%90%20www.Pills2Sale.com%20%E2%AD%90%20Buy%20Celexa%20Baikal-pharmacy%20Com%20-%20Buy%20Celexa%20Baikal%20Pharmacy%20Com buy celexa baikal-pharmacy com The US Government should allow all US citizens to travel there with no string attached. We would overwhelm the Cuban Government with our hamburgers, large fries, and large cokes, to the point where free market forces reign supreme.
A First Class stamp http://florenceaz.gov/?s=Baikal%20Online%20Pharmacy%20%E2%AD%90%20www.Pills2Sale.com%20%E2%AD%90%20Buy%20Celexa%20Baikal-pharmacy%20-%20Buy%20Celexa%20Baikal%20Pharmacy buy celexa baikal-pharmacy However, while looking for a grant from the Scottish government, and a large loan guarantee from the UK government, the company has seen that it might look better to do its trading within Britain. So another subsidiary, Ineos Commercial Services, has taken on Grangemouth's trading arm as of last July.
Not available at the moment http://articulab.hcii.cs.cmu.edu/?s=Baikal%20Online%20Pharmacy%20%E2%AD%90%20www.Pills2Sale.com%20%E2%AD%90%20Buy%20Celexa%20Baikal-pharmacy%20Com%20-%20Buy%20Celexa%20Baikal-pharmacy buy celexa baikal-pharmacy com The old manâs health has deteriorated over the past few years. He is bedridden and suffers from seasonal flu. Rai admits that his eyesight and hearing are failing. His niece and nephew, both more than 70 years old, say they are too old to support him any longer. They invited journalists and local health workers into their home, hoping that someone would be willing to take care of their uncle.
Could I order a new chequebook, please? https://www.greatbay.edu/page/2/?s=Baikal%20Online%20Pharmacy%20%E2%AD%90%20www.Pills2Sale.com%20%E2%AD%90%20Buy%20Celexa%20Baikal-pharmacy%20Com%20-%20Buy%20Celexa%20Baikal%20Pharmacy buy celexa baikal pharmacy He is highly critical of a government policy that, he says, merely targets the small fry while the really big fish get away - men who are very careful not to be caught with "drugs in their pockets".