我正在尝试从HoloLens获取一个简单的Vuforia图像到一个将QRCodes转换为文本(通过ZXing)的函数。我导入了ZXing库,在阅读类似的实现时发现,下面的实现是它最简单的实现形式。
实际上非常简单,步骤包括
因此,这个问题只是发生在构造函数调用BarcodeReader()上。我不知道这是怎么回事。为什么一个简单的构造函数调用会失败?
我从调试会话中得到的唯一其他提示是:
FileLoadException: Could not load file or assembly 'System.Core,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of
its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)
at ZXing.BarcodeReader..ctor()
at HelloWorldV2.Start()有人能通过VisualStudio的模拟器复制这个问题吗?(请注意,当将FrameFormats替换为灰度时,这在Unity中起作用。
发布于 2017-03-02 15:01:55
基于这篇博客文章,我建立了一个用ZXing在HoloLens上扫描QR代码的工作解决方案:
https://mtaulty.com/2016/12/28/windows-10-uwp-qr-code-scanning-with-zxing-and-hololens/
发布于 2017-05-31 20:00:49
这是因为您使用了错误的dll文件(hololens不支持该文件)。尝试ZXing.net中的winmd文件
https://stackoverflow.com/questions/42289346
复制相似问题