UNPKG

@zxing/library

Version:

TypeScript port of ZXing multi-format 1D/2D barcode image processing library.

41 lines (40 loc) 1.62 kB
import BoundingBox from './BoundingBox'; import BarcodeMetadata from './BarcodeMetadata'; import DetectionResultColumn from './DetectionResultColumn'; import { int } from '../../../customTypings'; /** * @author Guenther Grau */ export default class DetectionResult { ADJUST_ROW_NUMBER_SKIP: int; private barcodeMetadata; private detectionResultColumns; private boundingBox; private barcodeColumnCount; constructor(barcodeMetadata: BarcodeMetadata, boundingBox: BoundingBox); getDetectionResultColumns(): DetectionResultColumn[]; private adjustIndicatorColumnRowNumbers; /** * @return number of codewords which don't have a valid row number. Note that the count is not accurate as codewords * will be counted several times. It just serves as an indicator to see when we can stop adjusting row numbers */ private adjustRowNumbersAndGetCount; private adjustRowNumbersByRow; private adjustRowNumbersFromBothRI; private adjustRowNumbersFromRRI; private adjustRowNumbersFromLRI; private static adjustRowNumberIfValid; private adjustRowNumbers; /** * @return true, if row number was adjusted, false otherwise */ private static adjustRowNumber; getBarcodeColumnCount(): int; getBarcodeRowCount(): int; getBarcodeECLevel(): int; setBoundingBox(boundingBox: BoundingBox): void; getBoundingBox(): BoundingBox; setDetectionResultColumn(barcodeColumn: int, detectionResultColumn: DetectionResultColumn): void; getDetectionResultColumn(barcodeColumn: int): DetectionResultColumn; toString(): String; }