macos 可在 mac 上使用的 QR 解码器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/210470/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
QR decoder that works on mac?
提问by fmsf
Anyone know a QR decoder that works on mac or that might be online? I just need to decode one single image.
任何人都知道可以在 mac 上运行或可能在线的 QR 解码器?我只需要解码一张图像。
采纳答案by jm666
Unfortunately, the most used library libdecodeqris depends on OpenCV (gtk2) and it is too hard to compile it on OS X. (Tried to compile it because it is needed by Image::DecodeQR
perl module - but unsuccessful).
不幸的是,最常用的库libdecodeqr依赖于 OpenCV (gtk2),并且在 OS X 上编译它太难了。(尝试编译它,因为Image::DecodeQR
perl 模块需要它- 但没有成功)。
Fortunately, found this link: http://macscripter.net/viewtopic.php?id=37404from citing the next:
幸运的是,找到了这个链接:http: //macscripter.net/viewtopic.php?id = 37404从引用下:
- Download the ZBar source code.
- Unpack the the tarball, and open the resulting directory in a Terminal window.
- Type
./configure --disable-video --without-python --without-gtk --without-qt
to configure the build process, limiting dependencies to ImageMagick. - Type "make" to invoke the build process.
- Type "sudo make install", and enter an administrator password when prompted.
- 下载ZBar 源代码。
- 解压缩 tarball,并在终端窗口中打开生成的目录。
- 键入
./configure --disable-video --without-python --without-gtk --without-qt
以配置构建过程,限制对 ImageMagick 的依赖。 - 键入“make”以调用构建过程。
- 键入“sudo make install”,并在出现提示时输入管理员密码。
You will need ImageMagick
what can be installed from macports.
您将需要ImageMagick
可以从macports安装的内容。
After installing the ZBar, you can nicely decode qrcode with a command
安装 ZBar 后,您可以使用命令很好地解码 qrcode
zbarimg qrcode_file.png
Tested on OS X Mavericks 10.9.2 (and Lion/10.7.5)- and works nicely. Becasue it only depends on ImageMagick (exists in macports)- should be easily "compilable" on other OS X versions too.
在 OS X Mavericks 10.9.2(和 Lion/10.7.5)上测试过,效果很好。因为它只依赖于 ImageMagick(存在于 macports 中) - 也应该很容易在其他 OS X 版本上“编译”。
回答by The Matt
Using brew, it is easy to install zbar, a QR code reader.
使用 brew,很容易安装 zbar,一个二维码阅读器。
brew install zbar
Then a QR code can be read by calling:
然后可以通过调用读取二维码:
zbarimg qrcode_file.png
Also @jm666, brew can be used to install opencv.
另外@jm666,brew 可用于安装 opencv。
回答by Patrick Wied
here is an online decoder which should work for you, it uses the zxing online decoder in the background QRgen Online QR Decoder
这是一个应该适合您的在线解码器,它在后台使用 zxing 在线解码器 QRgen Online QR Decoder
回答by splattne
回答by Chochos
I managed to compile qrencode 2.0 a few months ago on my iMac. You need the developer tools installed (obviously), I can't remember if I need to build any additional libraries first like libpng or something like that. But that's for encoding strings as QR images...
几个月前,我设法在 iMac 上编译了 qrencode 2.0。您需要安装开发人员工具(显然),我不记得是否需要先构建任何其他库,例如 libpng 或类似的东西。但那是为了将字符串编码为 QR 图像......
You can use the Java QR Code Libraryon SourceForge, I also tried it on a Mac to decode images that I encoded with qrencode 2.0 and it worked fine.
您可以在 SourceForge 上使用Java QR 代码库,我也在 Mac 上尝试使用它来解码我使用 qrencode 2.0 编码的图像,并且效果很好。
回答by Dan Berlyoung
Here's one that uses your webcam and works in realtime like a QR decoder for a phone. It's based on AdobeAir and works reasonably well.
这是一个使用您的网络摄像头并像手机的二维码解码器一样实时工作的产品。它基于 AdobeAir,运行良好。
回答by cseserv
http://www.macstories.net/mac/mac-app-store-preview-quickmark-qr-code-reader/
http://www.macstories.net/mac/mac-app-store-preview-quickmark-qr-code-reader/
this one work for mac with iSight.
这一款适用于带有 iSight 的 mac。