doutan3040 2015-11-18 07:09
浏览 29

如何在PHP中执行条形码阅读器?

How to read the barcode by using the php

Steps done

I have generate the barcode by using the tcpdf scripts.

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');

enter image description here[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.

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

  • 写回答

1条回答 默认 最新

  • dsbm49845 2015-11-18 08:33
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?