简体   繁体   English

如何在php中做条码阅读器?

[英]How to do the barcode reader in the php?

How to read the barcode by using the php如何使用php读取条码

Steps done完成的步骤

I have generate the barcode by using the tcpdf scripts.我已经使用 tcpdf 脚本生成了条形码。

require_once(dirname(__FILE__).'/tcpdf_barcodes_1d_include.php');

// set the barcode content and type
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');

// output the barcode as SVG image
$barcodeobj->getBarcodeSVG(2, 30, 'black');

在此处输入图片说明 [ http://www.tcpdf.org/examples/barcodes/example_1d_svg.svg] [ http://www.tcpdf.org/examples/barcodes/example_1d_svg.svg]

But i don't know how to read the normal Barcode Image by using php.但我不知道如何使用 php 读取普通的条码图像。

And also i don't exactly what the barcode reader produces after scanning the barcode.But While surfing the sites i have seen that it will produce an output of 1-2-3-4 while scanning the barcode denoting the 1234. Please correct me if the output of the barcode reader differs from what i told而且我也不知道条形码阅读器在扫描条形码后会产生什么。但是在浏览网站时,我看到它会在扫描表示 1234 的条形码时产生 1-2-3-4 的输出。请纠正我如果条形码阅读器的输出与我所说的不同

In cases like this.在这种情况下。 Don't you use a barcode scanner to scan the image and it handles the job of decoding?您不使用条形码扫描仪来扫描图像并处理解码工作吗? Only thing you have to do is save the code somewhere您唯一要做的就是将代码保存在某处

When the code is scanned and given to the server, it will search for that code and thats how it goes.当代码被扫描并提供给服务器时,它会搜索该代码,这就是它的过程。

This is the reason almost all libraries like this don't include a read/decode functionality.这就是几乎所有像这样的库都不包含读/解码功能的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM