资源简介
zBar库下载,包含原文件,及64位编译可执行lib。按opencv方式配置include和lib。如果缺dll,添加文件夹中的。可以运行的。
代码片段和文件信息
#include
#include
#include
#define STR(s) #s
using namespace std;
using namespace zbar;
int main (int argc char **argv)
{
if(argc < 2) return(1);
#ifdef MAGICK_HOME
// http://www.imagemagick.org/Magick++/
// under Windows it is necessary to initialize the ImageMagick
// library prior to using the Magick++ library
Magick::InitializeMagick(MAGICK_HOME);
#endif
// create a reader
ImageScanner scanner;
// configure the reader
scanner.set_config(ZBAR_NONE ZBAR_CFG_ENABLE 1);
// obtain image data
Magick::Image magick(argv[1]); // read an image file
int width = magick.columns(); // extract dimensions
int height = magick.rows();
Magick::Blob blob; // extract the raw data
magick.modifyImage();
magick.write(&blob “GRAY“ 8);
const void *raw = blob.data();
// wrap image data
Image image(width height “Y800“ raw width * height);
// scan the image for barcodes
int n = scanner.scan(image);
// extract results
for(Image::SymbolIterator symbol = image.symbol_begin();
symbol != image.symbol_end();
++symbol) {
// do something useful with results
cout << “decoded “ << symbol->get_type_name()
<< “ symbol \““ << symbol->get_data() << ‘“‘ << endl;
}
// clean up
image.set_data(NULL 0);
return(0);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1305 2018-04-23 20:08 zbar32_64_lib_dll\opencv示例.txt
文件 964989 2009-10-16 07:13 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libiconv-2.dll
文件 234004 2009-10-16 07:10 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libjpeg-7.dll
文件 3225283 2009-10-17 00:06 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libMagickCore-2.dll
文件 1030247 2009-10-17 00:06 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libMagickWand-2.dll
文件 187149 2009-10-16 07:11 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libpng12-0.dll
文件 375388 2009-10-16 07:12 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libtiff-3.dll
文件 1157984 2009-10-17 10:35 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libxm
文件 209438 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\bin\libzbar-0.dll
文件 308 2018-04-21 14:21 zbar32_64_lib_dll\ZBar_32\ZBar\bin\zbarcam.bat
文件 30460 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\bin\zbarcam.exe
文件 35548 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\bin\zbarimg.exe
文件 78465 2009-10-16 07:09 zbar32_64_lib_dll\ZBar_32\ZBar\bin\zlib1.dll
文件 1279 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\COPYING
文件 2703 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\doc\index.html
文件 1878 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\doc\intro.html
文件 2277 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\doc\ref.html
文件 13967 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\doc\zbarcam.html
文件 14375 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\doc\zbarimg.html
文件 1182 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\examples\barcode.png
文件 1421 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\examples\scan_image.cpp
文件 1330 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\examples\scan_image.vcproj
文件 5454 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Decoder.h
文件 4624 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Exception.h
文件 7808 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Image.h
文件 3755 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\ImageScanner.h
文件 6967 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Processor.h
文件 4197 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Scanner.h
文件 10871 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Symbol.h
文件 4442 2009-10-27 23:31 zbar32_64_lib_dll\ZBar_32\ZBar\include\zbar\Video.h
............此处省略527个文件信息
相关资源
- zbar Windows32和64的库
- 应用opencv zbar 解析二维码图片
- 采用Zbar第三方库,实现二维码定位,
- zbar支持中文dll
- qt_opencv_zbar20181218二维码测距和识别检
- Zbar库好不容易找到的有configure的源码
- zbar_lib_x64_86_DLL
- qt+zbar+opencv 环境配置
- libzbar-0.dll
- iOS ZBarSDK 64位
- ZBarSDK_arm64
- Zbar-0.10 中文支持源码
- pb11.5+pbni+opencv249+zbar控制摄像头拍照
- 基于STM32的二维码识别源码+二维码解
- zbar_识别二维码.zip
- zbar window 64位
- libzbar64-0.dll
评论
共有 条评论