zxing 相关问题

ZXing(发音为“zebra crossing”)是一个用Java实现的开源,多格式1D / 2D条形码图像处理库,具有其他语言的端口。它的重点是使用手机上的内置摄像头扫描和解码设备上的条形码,而无需与服务器通信,尽管该库也支持在服务器上使用。

如何在ReactJS中使用zxing实现二维码扫描?

我尝试使用多种方式扫描二维码,例如react-qr-reader、react-qr-scanner,但所有这些都与最新的react版本存在依赖问题。 因此我尝试了 zxing ,它有效但无效

回答 1 投票 0

MAUI 的 ZXing(移动条形码扫描仪)

我有一个在xamarin中的项目,我想将其转移到MAUI,但我遇到了一个问题,那就是ZXing.Mobile不适用于MAUI,我已经下载了ZXing.Net.Maui。 该项目...

回答 1 投票 0

如何将 ZXing.Net.Maui 集成到部分转换的 Xamarin.Android 到 .NET MAUI 项目中以进行 QR/条形码扫描?

我正在将 Xamarin.Android 项目转换为 .NET MAUI。该项目是 WebView 的轻量级包装,UI 主要由用以下语言编写的单独项目处理:

回答 1 投票 0

我可以将 BufferedImage 作为 html 响应返回吗?

我有以下实现来创建QR码并尝试将生成的代码作为html响应返回(要求用户打开或保存生成的图像),而不是保存到目录中的文件。豪...

回答 1 投票 0

Android 中的 Zxing 始终处于横向模式

我正在尝试实现一个条形码阅读器。 https://www.youtube.com/watch?v=wfucGSKngq4&list=PLYBH5YZZegIf1DzLtuFmeDFqHYsfw1h1I&index=7&t=232s 我已经遵循了本教程,并且几乎一直...

回答 2 投票 0

为什么 Zxing Maui 条码扫描器在 IOS 上崩溃?

我在一个空项目上使用Zxing条码扫描仪,如下所示: XAML: 我在一个空项目上使用 Zxing 条码扫描仪,如下所示: XAML: <ScrollView> <VerticalStackLayout Spacing="25" Padding="30,0" VerticalOptions="Center"> <zxing:CameraBarcodeReaderView x:Name="cameraBarcodeReaderView" /> </VerticalStackLayout> </ScrollView> </ContentPage> C# using ZXing.Net.Maui; namespace CameraTest; public partial class MainPage : ContentPage { int count = 0; public MainPage() { InitializeComponent(); cameraBarcodeReaderView.Options = new BarcodeReaderOptions { Formats = BarcodeFormats.OneDimensional, AutoRotate = true, Multiple = true }; } } MauiProgram.cs using ZXing.Net.Maui; using Microsoft.Extensions.Logging; namespace CameraTest; public static class MauiProgram { public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseMauiApp<App>() .UseBarcodeReader() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); }); #if DEBUG builder.Logging.AddDebug(); #endif return builder.Build(); } } 信息.plist: <key>NSCameraUsageDescription</key> <string>This app uses barcode scanning to...</string> 但是在 iPhone 14 iOS 16.4 模拟器上运行该应用程序时,我收到以下错误。顺便说一句,我自己没有写一行代码。 Zxing条码出了什么问题? {System.ArgumentNullException: Value cannot be null. (Parameter 'device') at ObjCRuntime.ThrowHelper.ThrowArgumentNullException(String argumentName) at ObjCRuntime.NativeObjectExtensions.GetNonNullHandle(INativeObject self, String argumentName) at AVFoundation.AVCaptureDeviceInput..ctor(AVCaptureDevice device, NSError& error) at ZXing.Net.Maui.CameraManager.UpdateCamera() at ZXing.Net.Maui.CameraManager.UpdateCameraLocation(CameraLocation cameraLocation) at ZXing.Net.Maui.CameraBarcodeReaderViewHandler.<>c.<.cctor>b__24_1(CameraBarcodeReaderViewHandler handler, ICameraBarcodeReaderView virtualView) at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[ZXing.Net.Maui.ICameraBarcodeReaderView, ZXing.Net.Maui, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[ZXing.Net.Maui.CameraBarcodeReaderViewHandler, ZXing.Net.Maui, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler`2[[ZXing.Net.Maui.ICameraBarcodeReaderView, ZXing.Net.Maui, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIView, Microsoft.iOS, Version=16.4.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler`2[[ZXing.Net.Maui.ICameraBarcodeReaderView, ZXing.Net.Maui, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIView, Microsoft.iOS, Version=16.4.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.ScrollViewHandler.UpdateContentView(IScrollView scrollView, IScrollViewHandler handler) at Microsoft.Maui.Handlers.ScrollViewHandler.MapContent(IScrollViewHandler handler, IScrollView scrollView) at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IScrollViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIScrollView, Microsoft.iOS, Version=16.4.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIScrollView, Microsoft.iOS, Version=16.4.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler) at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page) at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ContentViewHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ViewExtensions.ToHandler(IView view, IMauiContext context) at Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.SetPageRenderer(Page page, ShellContent shellContent) at Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.LoadRenderers() at Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.ViewDidLoad() at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) at CameraTest.Program.Main(String[] args) in D:\Maui\annex_apps\CameraTest\CameraTest\Platforms\iOS\Program.cs:line 13} 我遇到了同样的问题,应用程序在扫描页面崩溃。您找到同样的解决方案了吗?如果你这样做了,请你在这里分享一下。预先感谢您。

回答 1 投票 0

如何生成带logo的二维码?

我正在为Android设备开发应用程序。 我想生成带有徽标的二维码。 通过 ZXing,我知道如何生成简单的二维码,如下所示: 但我想生成二维码...

回答 5 投票 0

导入 ZXing - 缺少 core/build.xml

我正在尝试导入 Google 的 ZXing。 我从 https://code.google.com/p/zxing/downloads/detail?name=ZXing-2.2.zip&can=2&q= 下载了最新版本 从 cmd 提示符我导航到...

回答 5 投票 0

如何在读取条形码之前提高图像质量[关闭]

我正在使用 zxing-cpp 库从图像中读取条形码。 导入CV2 导入zxingcpp img = cv2.imread('test.jpg') 结果= zxingcpp.read_barcodes(img) 对于结果中的结果: print('找到了...

回答 1 投票 0

如何将ZXing Library集成到Android Studio中进行条码扫描?

我一直在互联网上寻找如何将 zxing 库包含到我的项目中,我找到了这个教程:http://blog.dihaw.com/integrating-zxing-in-your-android-app-as-独立扫描仪/ 但是什么...

回答 4 投票 0

zxing 无法从图片中找到二维码

扫描这样的二维码时:用zxing找不到结果。用我的手机扫描是没有问题的。 我正在使用最新的 Java zwing 3.5.2。 这是使用的算法(辛苦了...

回答 1 投票 0

如何解决 Duplicate class java.lang.RuntimeException: Duplicate class com.google.zxing.client

我目前面临重复类 RuntimeException。在我们当前的用例中,我们正在生成一个使用 com.journeyapps:zxing-android-embedded 的工件。我们的客户希望包括我们的

回答 5 投票 0

如何在 Zxing 扫描仪相机视图中添加按钮?

我当前的 Zxing 扫描仪屏幕如下所示, 我想在上面添加一个文本视图和几个按钮,我尝试了很多程序,但没有任何效果,任何人都可以指导我,我会谦虚地寻找

回答 2 投票 0

如何在Android Studio Java中共享QR生成的图像

我正在尝试分享我的二维码生成的图像,但是当我尝试时,二维码图像没有出现在所选的共享方法上。输出 我正在尝试创建一个功能,当用户注册时它会

回答 1 投票 0

找不到我.dm7.barcodescanner:zbar:1.9.13

我想在我的 android studio 应用程序中使用这个库 https://github.com/dm77/barcodescanner。我按照上述步骤进行操作,例如将库添加到 build.gradle 文件中并添加 jcenter() 但仍然...

回答 2 投票 0

使用 JasperReports 构建的包含二维码的报告无法在 iDempiere 2.1 上运行

我希望在使用 JasperReports 生成的报告中显示二维码。我正在使用 Jaspersoft Studio (JSS) 6.2.0 生成 jrxml 并使用 iDempiere [ ADEMPIERE_MAIN_VERSION=Release 2.1,

回答 1 投票 0

如何创建 module-info 类文件并将其添加到 jar 中?

我正在开发一个 javafx 项目,我需要自己生成 module-info.class 文件。所以,我想知道如何正确地做到这一点并使其与 Maven 一起工作。 我在使用 QRCode 时面临这个问题

回答 1 投票 0

ZXing .net MAUI:如何在条形码扫描仪视图周围创建边框?

我是 .net MAUI 新手,想要使用 ZXing 库创建条形码扫描仪视图 我想在扫描视图(相机捕获屏幕)周围放置一些自定义边框。我怎样才能创建这些边框......

回答 1 投票 0

Android - 二维码生成器 API

我正在尝试从我的应用程序生成一些 QR,但我已经看到有很多类型的 QR,例如联系人、Wi-Fi 等。我想知道是否有免费的 API 或库可以实现这个,我已经看到了

回答 4 投票 0

如何生成圆形二维码?

如何生成圆形二维码? 我想生成一个用圆圈而不是正方形绘制的二维码。我目前有这个代码: 公共位图生成QR(字符串文本) {

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.