Files
handleaiuinew/env/3DAI/include/zxing/oned/ODITFReader.h
T
2024-05-18 23:53:26 +08:00

34 lines
996 B
C++

/*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
*/
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "ODRowReader.h"
namespace ZXing::OneD {
/**
* <p>Implements decoding of the ITF format, or Interleaved Two of Five.</p>
*
* <p>This Reader will scan ITF barcodes of certain lengths only.
* At the moment it reads length >= 6. Not all lengths are scanned, especially shorter ones, to avoid false positives.
* This in turn is due to a lack of required checksum function.</p>
*
* <p>The checksum is optional and is only checked if the validateITFCheckSum hint is given.</p>
*
* <p><a href="http://en.wikipedia.org/wiki/Interleaved_2_of_5">http://en.wikipedia.org/wiki/Interleaved_2_of_5</a>
* is a great reference for Interleaved 2 of 5 information.</p>
*/
class ITFReader : public RowReader
{
public:
using RowReader::RowReader;
Result decodePattern(int rowNumber, PatternView& next, std::unique_ptr<DecodingState>&) const override;
};
} // namespace ZXing::OneD