The Android version of the SDK cannot read directly from image files but it can read from a bitmap using code similar to the following: Barcode barcode = new Barcode(); // Load your image file into a bitmap int width = bitmap.getWidth(); int height = bitmap.getHeight(); byte[] rawBytes = new byte[width * height * 4];
We’ve had a number of emails about the 2DDOC barcode type being used in French Covid “passports”. The Softek Barcode Reader Toolkit is able to read the data in the barcodes because it is stored using plain text in a DataMatrix symbology, however we do not support the actual verification of the digital signature for
Softek Barcode Reader SDK for Linux Version 9.1.1.1 has been released. The main change in this version is the addition of functions to read from TIF, and JPEG files held in memory rather than as files on disc. The new function is called mtScanBarCodeFromString. The C interface has also been brought in line with the
Softek Barcode Reader SDK for Windows Version 9.1.1.1 has been released. The main change in this version is the addition of functions to read from TIF, PDF, JPEG,GIF or PNG files held in memory rather than as files on disc. The new functions are called ScanBarCodeFromString for the DLL or ScanBarCodeFromByteArray for the .Net interface.
Here is the command line to convert an Adobe PDF document to TIF on Linux, in a suitable format to be used as input for the Linux version of the Softek Barcode Reader Toolkit: For color documents: gs -dNOPAUSE -r300 -sDEVICE=tiffscaled24 -sCompression=lzw -dBATCH -sOutputFile=output.tif input.pdf For black and white: gs -dNOPAUSE -r300 -sDEVICE=tiffg4 -sCompression=lzw -dBATCH
We’ve made some changes to the recommended way of interfacing Python on Windows to take account of Python 3 and Windows 64-bit. The first change is in the loading of the DLL file itself.. if platform.machine().endswith(’64’): bardecodeLibrary = os.getcwd() + ‘../../../SoftekBarcode64DLL.dll’ a=CDLL(bardecodeLibrary) else: bardecodeLibrary = os.getcwd() + ‘../../../SoftekBarcodeDLL.dll’ a=WinDLL(bardecodeLibrary) Note the use of CDLL on
Version 8.4.1 of the Softek Barcode Reader Toolkit for Linux/Android/iOS/Raspberry Pi and AM has been released with the following changes: The amount of memory required on the stack for the software to run has been reduced. This had previously caused some problems when running version 8.3.3 under docker. The bardecode.a library is now built using
Version 8.4.1 of the Softek Barcode Reader Toolkit for Windows has been released with the following changes: Interfaces for .Net Core and Python have been added. The QRCodeAutoMedianFilter property in the .Net interface has been changed from bool to short. The property is in fact a mask and should not have previously been designated bool
Here’s some C code that shows how to read an opencv cv::Mat image using the barcode reader toolkit. The main points to note are: Read the image using the cv::IMREAD_GRAYSCALE flag Flip the image vertically Align the scan lines to 4 byte boundaries #include <barcode.h> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> static void
A barcode font is a quick and easy way to create a barcode and a lot cheaper than buying software to create the barcode, so what could be wrong in using a Code128 font? A Code 128 barcode breaks down as follows: Start character Data characters Checksum character Stop character The start and stop characters