最近我注意到很多HCCB ( Microsoft Tag ) 条形码,Zxing 无法识别。有没有免费或开源的阅读器库来阅读这些代码?
如果没有任何软件可以执行此操作,那么识别此类代码中的三角形或点的最佳方法是什么?
我是一名新的 Android 开发人员,我尝试创建一个使用条形码的应用程序。我尝试了ZXing,非常简单。但现在我需要通过条形码获取有关产品的信息。我怎样才能做到这一点?
我正在使用 Quagga.js 使用 HTML5 和 javascript 制作在线扫描应用程序。
我需要让网络摄像头工作来搜索条形码和导入的 quagga.js :
在 Quagga 的网页上,您会找到一个名为 Quagga.init 的方法。初始化网络摄像头视图。我在脚本标签中输入了这段代码:
Quagga.init({
inputStream : {
name : "Live",
type : "LiveStream"
},
decoder : {
readers : ["code_128_reader"]
}
}, function() {
console.log("Initialization finished. Ready to start");
Quagga.start();
});
Run Code Online (Sandbox Code Playgroud)
但什么也没发生。我需要做什么才能让这个网络摄像头工作?对于创建用于扫描条码的基于 Web 的应用程序,还有其他意见吗?
谢谢你的回答!
在 Android 开发工具中,如何使用ZXing 库在不使用相机的情况下从屏幕上读取 QR 码?
请问有人可以帮我吗?
我正在使用 zxing api 来创建条形码。但是在创建时,我无法将条形码内容写为条形码下方的标签。
输出 -

需要输出——

生成这些条形码的代码如下 -
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.WriterException;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
public class BarcodeTesting {
private static void wrtieToStream(BitMatrix bitMatrix) {
try {
MatrixToImageWriter.writeToStream(bitMatrix, "png", new FileOutputStream(new File("hello" + ".png")));
System.out.println( " Barcode Generated.");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
private BitMatrix generateBitMatrix(String content, BarcodeFormat format, int width, int height) {
MultiFormatWriter writer = new MultiFormatWriter(); …Run Code Online (Sandbox Code Playgroud)我首先假设下面的图像是一个二维码,但仔细检查后,它似乎是别的东西(注意,例如,矩阵中间的校准方块)。
有人知道这样的点阵叫什么吗?是否有任何工具可用于解码它(Python 是理想的......)?
非常感谢!
有没有办法使用 Apple 内置的 iOS 条形码 API 扫描附加条形码的最后 5 位数字?
如果没有,是否有一个免费的 SDK 解决方案,已知该解决方案运行良好并且与最新的 iOS 版本保持同步?ZBar 可以工作,但已经过时了。
请参阅此处的漫画书示例:
在我的应用程序中,我必须使用AVCaptureVideoPreviewLayer和捕获条形码AVCaptureSession,当我使用后置摄像头时,一切都非常完美且非常快,但是当我尝试从前置摄像头读取相同的代码时,它不起作用。我尝试AVCaptureVideoPreviewLayer使用以下代码videoPreviewLayer.affineTransform = CGAffineTransformMakeScale(-1, 1);镜像,它镜像了图像,但设备仍然无法检测到条形码。有没有办法从前置摄像头检测条形码?
我正在使用https://github.com/devongovett/pdfkit生成 PDF 文件,我可以简单地使用类似
app.get('/get-pdf', (req, res) => {
const doc = new PDFDocument();
const filename = 'my_pdf.pdf';
res.setHeader('Content-disposition', 'attachment; filename="' + filename + '"');
res.setHeader('Content-type', 'application/pdf');
const content = "Some content";
doc.y = 300;
doc.text(content, 50, 50);
doc.pipe(res);
doc.end();
});
Run Code Online (Sandbox Code Playgroud)
但我也想生成一个 UPC-A 条形码:
我找到了库https://github.com/lindell/JsBarcode,它可以仅从 12 位代码生成这样的条形码。但是,该库似乎主要用于客户端。
我想用这样的条形码生成一个 PDF,但我不知道该怎么做,或者 JsBarcode 对于这种单一类型的条形码来说是否太复杂。
正如评论中所建议的,我确实尝试使用 UPC-A 字体生成条形码:
app.get('/get-pdf', (req, res) => {
const doc = new PDFDocument();
const filename = 'my_pdf.pdf';
res.setHeader('Content-disposition', 'attachment; filename="' + filename + '"');
res.setHeader('Content-type', …Run Code Online (Sandbox Code Playgroud) 我使用 Google Vision Barcode API 来扫描条码。由此,我可以从条形码中获取显示值。但是,如何在扫描条码后获得完整的产品信息?
这意味着,扫描后我得到的条形码值为 036000291452。但我也需要从中获取产品信息。
类似于下图:
条形码格式:UPC 036000291452 艺术家:Haindling 标签:Polydor
请帮忙!
barcode ×10
android ×3
qr-code ×3
ios ×2
objective-c ×2
zxing ×2
java ×1
javascript ×1
node-pdfkit ×1
node.js ×1
pdf ×1
quagga ×1
scanning ×1
swift ×1
web ×1