使用ZXing和MFT在Windows Phone 8.1 Runtime上实现实时条形码扫描仪 [英] Implement Realtime Barcode Scanner on Windows Phone 8.1 Runtime using ZXing and MFT

查看:70
本文介绍了使用ZXing和MFT在Windows Phone 8.1 Runtime上实现实时条形码扫描仪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用需要条码扫描器功能的Windows Phone 8.1运行时购物应用程序.我正在使用ZXing库,这很好.我的问题不是解码图片,ZXing做得很好,而是实时获取Camera Preview,并将其输入到ZXing.经过一番研究后,我发现这个论坛

I'm working on a Windows Phone 8.1 Runtime shopping application which needs barcode scanner feature. I'm using the ZXing lib, which is fine. My problem isn't about decoding the picture, ZXing does a great job, but to get the Camera Preview realtime, and feed it to ZXing. After a little research I found this forum https://web.archive.org/web/20150328233747/http://developer.nokia.com/community/discussion/showthread.php/247707-Windows-Phone-8-1-Windows-Media-Capture-API-and-Preview-Frames. Can someone give me a working sample of combining an MFT and ZXing? Or how can I get the preview and handle it in my C# code? My project is close to the deadline, so please help me out! Right now the barcode scanning is really messy, I have a "Scan" UI button, which calls the MediaCapture.CapturePhotoToStreamAsync method, but that's not a good solution. I need realtime, automatic scanning.

谢谢!

推荐答案

我终于找到了解决方案.我是Microsoft工程师Matthieu Maitre,他黑了一些非常有用的东西.他的项目的主要目的是将诺基亚Imaging SDK和DirectX HLSL像素着色器的图像效果应用于Universal Store Apps中的视频."他有一个叫做"QrCodeDetector"的效果",我尝试并工作了,但是速度很慢.所以我问他是否可以增强效果,两天后他更新了nuget包,它可以正常工作,现在快如闪电:

I finally found a solution. I Microsoft engineer, Matthieu Maitre, hacked together something very useful. The main purpose of his project was "Apply image effects from the Nokia Imaging SDK and DirectX HLSL pixel shaders to videos in Universal Store Apps..". He had an "effect" called "QrCodeDetector", which I tried out and worked, but was really slow. So I asked him if he could enhance the effect, and in two days he updated the nuget package, and it works, and it is lightning fast now: https://github.com/mmaitre314/VideoEffect#realtime-video-analysis-and-qr-code-detection

这篇关于使用ZXing和MFT在Windows Phone 8.1 Runtime上实现实时条形码扫描仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆