Avalonia相机条形码/二维码扫描

huangapple go评论71阅读模式
英文:

Avalonia Camera Barcode/QRCode Scanning

问题

我正在为朋友的商店开发一个简单的库存管理系统应用程序。

我需要扫描条形码/QR码(使用摄像头)来加载/卸载库存中的产品。

我认为最好的条形码阅读方式是使用ZXing.Net
但是我在使用摄像头?有没有简单的方法可以做到?

我一直在寻找解决方案,但感到迷茫。
我找到了Camera.MAUI的解决方案.. 但我在使用Avalonia

有什么提示或有用的链接吗?
请帮助。

英文:

I'm developing a simple Inventory Management System app for a friend's shop.

I have to scan a barcode/QRCode (using the camera) to load/unload the product in stock.

I think the best way for barcode reading is using ZXing.Net.
But I'm using the camera? Is there an easy way to do it?

I've been looking for a solution but I feel lost.
I found Camera.MAUI solutions.. but I'm using Avalonia.

Any tips or useful links?
Please help.

答案1

得分: 1

对于商家操作,您不需要任何其他东西。您需要一个硬件条形码/二维码阅读器设备,这些设备便宜且在线购买便捷(大约20美元左右),它们通常连接到USB端口并充当键盘。也就是说,当您扫描一件物品时,它会“显示”为某人在键盘上键入了条形码值。因此,您可以以这种方式组织您的应用程序。要么有一个编辑框来接受代码,要么跟踪键盘输入,直到您识别到完整的代码。

英文:

For merchant operations, you do not need any of that. You need a hardware barcode/QR reader device, which are cheap and available online (cca $20 give or take), they usually hook up to USB and act as a keyboard. Meaning when you scan an item, it "appears" as if someone typed in the barcode value on a keyboard. So, you organize your app that way. Either have an edit box to accept the code, or track keyboard entry until you recognize a full code.

huangapple
  • 本文由 发表于 2023年7月13日 21:22:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76679850.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定