forked from zxing-cpp/zxing-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReadBarcode.h
33 lines (26 loc) · 814 Bytes
/
ReadBarcode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Copyright 2019 Axel Waggershauser
*/
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "DecodeHints.h"
#include "ImageView.h"
#include "Result.h"
namespace ZXing {
/**
* Read barcode from an ImageView
*
* @param buffer view of the image data including layout and format
* @param hints optional DecodeHints to parameterize / speed up decoding
* @return #Result structure
*/
Result ReadBarcode(const ImageView& buffer, const DecodeHints& hints = {});
/**
* Read barcodes from an ImageView
*
* @param buffer view of the image data including layout and format
* @param hints optional DecodeHints to parameterize / speed up decoding
* @return #Results list of results found, may be empty
*/
Results ReadBarcodes(const ImageView& buffer, const DecodeHints& hints = {});
} // ZXing