# ZXing C++ Port
[![Build Status](https://travis-ci.org/glassechidna/zxing-cpp.svg?branch=master)](https://travis-ci.org/glassechidna/zxing-cpp)
[ZXing](https://github.com/zxing/zxing) is/was a Java library.
At some point a complete C++ port/rewrite was created and maintained in the official [ZXing](https://github.com/zxing/zxing) repo. However, at the time of writing the C++ port is no longer maintained and has been removed from the official ZXing repo.
This project was forked from the [last ZXing commit](https://github.com/zxing/zxing/commit/00f6340) to contain the C++ project, with the following exceptions
* scons (Python) build system has been deleted.
* Deleted black box tests, because they refer to a large test data in ZXing repo.
* Added appropriate copyright/licensing details (based on those in the ZXing repo).
* Updated README.md
Removal of build systems was done to minimise maintenance burden.
If tests and XCode projects (other than those produced automatically be CMake) are desired, then another repo should be created and this repo referenced as a submodule.
# Building using CMake
CMake is a tool, that generates native makefiles and workspaces. It integrates well with a number of IDEs including Qt Creator and Visual Studio.
Usage with CLion or Qt Creator:
1. Simply open `CMakeLists.txt` as a new project
2. Additional command line arguments can be specified (see below)
Usage with Makefiles, Visual Studio, etc. (see `cmake --help` for a complete list of generators):
1. `mkdir build`
2. `cd` to `build`
3. Unix: run `cmake -G "Unix Makefiles" ..`
3. Windows: run `cmake -G "Visual Studio 10" ..`
You can switch between build modes by specifying:
- `-DCMAKE_BUILD_TYPE=Debug` or
- `-DCMAKE_BUILD_TYPE=Release`
# OpenCV integration
When build on a system where opencv is installed the open cv bridge classes and executable will be built too.
# Development tips
To profile the code (very useful to optimize the code):
1. Install Valgrind
2. Run `valgrind --tool=callgrind build/zxing - path/to/test/data/*.jpg > report.html`
3. Analyze output using KCachegrind
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ZXing是一个开放源码的,实现的多种格式的1D/2D条码图像处理库,它包含了联系到其他语言的端口。Zxing可以实现使用手机的内置的摄像头完成条形码的扫描及解码。提供C++版本,编译请查看README.md文件。 1、mkdir build 2、cd build 3、cmake -G "Unix Makefiles" .. 4、make 5、识别二维码测试:./zxing --test-mode 1.png ,即可打印识别出二维码内容。
资源推荐
资源详情
资源评论
收起资源包目录
zxing库(c++) (258个子文件)
AUTHORS 2KB
win_iconv.c 59KB
BigUnsigned.cc 22KB
BigInteger.cc 11KB
BigUnsignedInABase.cc 4KB
BigIntegerAlgorithms.cc 2KB
BigIntegerUtils.cc 1KB
ChangeLog 9KB
FindCPPUNIT.cmake 2KB
FindIconv.cmake 1KB
COPYING 11KB
lodepng.cpp 212KB
jpgd.cpp 85KB
BitMatrixParser.cpp 51KB
Version.cpp 29KB
Detector.cpp 25KB
LinesSampler.cpp 24KB
DecodedBitStreamParser.cpp 20KB
Detector.cpp 18KB
FinderPatternFinder.cpp 18KB
Detector.cpp 15KB
Code128Reader.cpp 15KB
DecodedBitStreamParser.cpp 14KB
Decoder.cpp 14KB
DecodedBitStreamParser.cpp 13KB
Detector.cpp 12KB
BitMatrixParser.cpp 12KB
CodaBarReader.cpp 11KB
ITFReader.cpp 11KB
Code39Reader.cpp 10KB
UPCEANReader.cpp 10KB
MultiFinderPatternFinder.cpp 9KB
WhiteRectangleDetector.cpp 9KB
Code93Reader.cpp 9KB
main.cpp 9KB
ModulusPoly.cpp 9KB
OneDReader.cpp 7KB
HybridBinarizer.cpp 7KB
Version.cpp 7KB
ErrorCorrection.cpp 7KB
GenericGFPoly.cpp 7KB
AlignmentPatternFinder.cpp 7KB
main.cpp 7KB
GlobalHistogramBinarizer.cpp 7KB
MonochromeRectangleDetector.cpp 6KB
StringUtils.cpp 6KB
ReedSolomonDecoder.cpp 6KB
BitMatrixParser.cpp 6KB
PDF417Reader.cpp 5KB
BitArrayTest.cpp 5KB
PerspectiveTransform.cpp 5KB
DecodeHints.cpp 5KB
GenericMultipleBarcodeReader.cpp 5KB
FormatInformation.cpp 5KB
Decoder.cpp 4KB
UPCEReader.cpp 4KB
MultiFormatReader.cpp 4KB
GridSampler.cpp 4KB
BitArray.cpp 4KB
ReedSolomonTest.cpp 4KB
DataBlock.cpp 4KB
MultiFormatUPCEANReader.cpp 4KB
DataBlock.cpp 4KB
GenericGF.cpp 4KB
ResultPoint.cpp 4KB
CharacterSetECI.cpp 4KB
DataMask.cpp 4KB
ImageReaderSource.cpp 4KB
BitMatrix.cpp 3KB
Decoder.cpp 3KB
MultiFormatOneDReader.cpp 3KB
Decoder.cpp 3KB
FormatInformationTest.cpp 3KB
GreyscaleLuminanceSource.cpp 3KB
VersionTest.cpp 3KB
ModulusGF.cpp 3KB
DataMaskTest.cpp 3KB
GreyscaleRotatedLuminanceSource.cpp 3KB
Mode.cpp 3KB
LuminanceSource.cpp 3KB
EAN13Reader.cpp 3KB
BitMatrixTest.cpp 3KB
FinderPattern.cpp 3KB
PerspectiveTransformTest.cpp 2KB
InvertedLuminanceSource.cpp 2KB
ByQuadrantReader.cpp 2KB
UPCAReader.cpp 2KB
QRCodeMultiReader.cpp 2KB
BitSource.cpp 2KB
BinaryBitmap.cpp 2KB
AztecReader.cpp 2KB
EAN8Reader.cpp 2KB
ModeTest.cpp 2KB
MatSource.cpp 2KB
ErrorCorrectionLevel.cpp 2KB
AlignmentPattern.cpp 2KB
BitSourceTest.cpp 2KB
QRCodeReader.cpp 2KB
AztecDetectorResult.cpp 2KB
Result.cpp 2KB
共 258 条
- 1
- 2
- 3
qiubin2009
- 粉丝: 8
- 资源: 21
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页