Reading a Bar Code Code Snippet¶
This code snippet shows how to read a barcode.
C++¶
#include <eVision/EasyBarCode/EasyBarCode1/EBarCode.h>
using namespace eVision;
// Image constructor
EImageBW8 srcImage;
// Bar code reader constructor
EBarCode reader;
// String for the decoded bar code
std::string result;
// ...
// Read the source image
result = reader.Read(&srcImage);
See also
C#¶
using eVision;
// Image constructor
EImageBW8 srcImage = new EImageBW8();
// Bar code reader constructor
eVision.EBarCode reader = new eVision.EBarCode();
// String for the decoded bar code
string result;
// ...
// Read the source image
result = reader.Read(srcImage);
See also
Python¶
Warning
This snippet is not available in this language.