barcode

In a PDF417 barcode where number of columns are fixed, how would I calculate the number of rows required for some text?

南楼画角 提交于 2019-12-01 13:10:43
问题 I need to generate a PDF417 barcode from some text. I have an API (that I didn't create) that generates a PDF417 barcode given the data, number of rows and number of columns (among other parameters irrelevant to the question). My PDF417 barcode uses text encoding. This means 1 codeword can hold up to 2 characters. Now, the number of columns HAS to be fixed because I'm printing this barcode in a very constrained space. The following is what I have inferred from this document (Refer page 38 -

在Android上使用ZXing识别条码/二维码

半城伤御伤魂 提交于 2019-12-01 11:55:09
本文来自http://blog.csdn.net/hellogv/ ,引用必须注明出处! 越来越多的手机具备自动对焦的拍摄功能,这也意味着这些手机可以具备条码扫描的功能....... 手机具备条码扫描的功能,可以优化购物流程,快速存储电子名片(二维码)等 。 本文使用ZXing 1.6实现条码/二维码识别。 ZXing 是个很经典的条码/二维码识别的开源类库,long long ago,就有开发者在J2ME上使用ZXing了,不过要支持JSR-234规范(自动对焦)的手机才能发挥其威力,而目前已经有不少Android手机具备自动对焦的功能。 本文代码运行的结果如下,使用91手机助手截图时,无法截取SurfaceView的实时图像: 本文使用了ZXing1.6的core,即把\zxing-1.6\core\下的src复制覆盖工程的src;另外还要使用到\zxing-1.6\android\下的PlanarYUVLuminanceSource.java。 PS:\zxing-1.6\android\ 是BarcodeScanner的源码,本文程序相当于BarcodeScanner的精简版,只保留最基本的识别功能。 源码目录结果如下图,ChecksumException.java下面还有很多源文件,截图尚未列出: main.xml源码如下,main

树莓派应用:摄像头条形码扫描

偶尔善良 提交于 2019-12-01 08:04:08
树莓派小而强大,有非常多的应用场景。这里分享下使用树莓派,摄像头,以及C和Python代码来实现一个条形码扫描工具。之前分享过 如何把OpenCV Python获取的图像传递到C层处理 ,会用到里面的代码。 测试环境 设备: Raspberry Pi 3 系统: RASPBIAN JESSIE WITH PIXEL 准备工作 Dynamsoft Barcode Reader for Raspberry Pi Python 2.7.0 OpenCV 3.0.0 Raspberry Pi 2 or 3 USB webcam 编译和安装 如何在树莓派上编译安装OpenCV 1. 下载 源代码 。 2. 安装依赖库: sudo apt-get install cmake sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev sudo apt-get install libxvidcore-dev libx264-dev sudo apt-get install python-dev 3. 设置编译环境: cd ~/opencv-3.0.0/

如何把OpenCV Python获取的图像传递到C层处理

此生再无相见时 提交于 2019-12-01 08:03:59
用OpenCV Python来开发,如果想要用到一些C/C++的图像处理库,就需要创建Python的C/C++扩展,然后把数据从Python传递到底层处理。这里分享下如何在C/C++层获取数据。 参考原文: How to Convert OpenCV Image Data from Python to C 作者: Xiao Ling 翻译:yushulx 开发环境 Dynamsoft Barcode Reader 4.2 Python version: 2.7.0 OpenCV version: 2.4.10. Download cv2.pyd Windows 10 USB webcam Python C/C++扩展 把 DynamsoftBarcodeReaderx86.dll 和 cv2.pyd 拷贝到目录 Python27\Lib\site-packages 。 OpenCV Python获取的图像数据类型是 numpy.ndarray: > rval, frame = vc.read(); > print type(frame) > <type 'numpy.ndarray'> 在C层我们希望能获取到数据的指针。查看OpenCV源码文件 opencv\modules\python\src2\cv2.cv.hpp 可以找到方法: PyObject *o; if (!PyArg

使用DirectShow.NET获取摄像头视频流

我是研究僧i 提交于 2019-12-01 08:03:50
开源社区提供了DirectShow的.NET版本,为C#开发者提供了便利。这里分享下如何用DirectShow.NET API来启动摄像头,以及获取视频流数据。 参考原文: Read Barcode from Webcam Viewer with DirectShow.NET 作者: Xiao Ling 翻译:yushulx 学习资源 DirectShow.NET library DirectShow.NET Documentation DirectShow.NET samples 示例:获取视频流数据识别barcode 获取连接设备: DsDevice[] devices = DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice); 获取DirectShow接口: int hr = 0; this.graphBuilder = (IFilterGraph2)new FilterGraph(); this.captureGraphBuilder = (ICaptureGraphBuilder2)new CaptureGraphBuilder2(); this.mediaControl = (IMediaControl)this.graphBuilder; this.videoWindow = (IVideoWindow

USB barcode reader in Qt4

北战南征 提交于 2019-12-01 07:39:37
I was wondering how could I integrate a USB barcode scanner into a Qt application, as well as a barcode printer. I looked for tutorials but didn't find anything interesting out there. Any ideas? Thanks in advance. Most barcode scanners, IIRC basically work like a keyboard from the point of view of your application. You just provide a text field and the barcode reader "types" what it reads. So you don't really need to worry about that, other than validating the input and maybe providing a hidden text field if you don't want the input shown. Or a modal dialog saying "scan item" with focus on a

USB barcode reader in Qt4

我怕爱的太早我们不能终老 提交于 2019-12-01 04:29:36
问题 I was wondering how could I integrate a USB barcode scanner into a Qt application, as well as a barcode printer. I looked for tutorials but didn't find anything interesting out there. Any ideas? Thanks in advance. 回答1: Most barcode scanners, IIRC basically work like a keyboard from the point of view of your application. You just provide a text field and the barcode reader "types" what it reads. So you don't really need to worry about that, other than validating the input and maybe providing a

Maximum length of a Code 128 barcode

喜夏-厌秋 提交于 2019-12-01 03:27:53
I need to create a Code 128 barcode with a maximum of 44 characters. What is the maximum number of characters supported by the Code 128 barcode format? I came to know that Code 128 can encode all 128 characters of ASCII, but I cannot determine the maximum number of characters it supports. The specification for Code 128 (ISO/IEC 15417) leaves the maximum length undefined and states that this is something that should be defined by any derivative application [*] standard: 4.7.1 Symbology and data characteristics Application specifications should consider the following parameters. b) The number of

How can I run my Windows CE project from within Visual Studio (2003)?

◇◆丶佛笑我妖孽 提交于 2019-12-01 03:01:18
问题 I'm working on a legacy app that needs to be continued in VS 2003; I cannot effectively debug it, though, because when I try to run it, I get the following dialog: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Deploy Choose the device to target. If the .NET Compact Framework is not already on the selected device, it will be deployed along iwth your application. Pocket PC 2002 Emulator Pocket PC Device Windows CE .NET Device Windows CE .NET Emulator (Default) ~~~~~~~~~~~

How to scan driver's license (PDF417) using xamarin forms + zxing on iOS 10.2

空扰寡人 提交于 2019-12-01 01:27:06
I am using Xamarin forms to write an iOS app and using the ZXing library to scan barcodes. I am trying to read a driver's license (PDF417) barcode, but the library is not able to recognize that barcode. If I include UPC or other barcodes in the PossibleFormats, they are scanned correctly. I am also certain the barcode I am trying to read is PDF417 barcode because Scandit is able to recognize it correctly while using only PDF417 barcode. Here is the code I am using. What do I need to change so that the PDF417 barcode is recognized correctly? async void Handle_Clicked (object sender, System