UNPKG

scanbot-web-sdk

Version:

Scanbot Web Document and Barcode Scanner SDK

11 lines (10 loc) 464 B
import { BarcodeItem } from "../core-types"; import { Size } from "./dto/Size"; export default class BarcodeUtils { /** * Keep only the center-most duplicate barcode in the list of barcodes in order to prevent multiple jumping overlays * and an array of other issues that can arise from buggy overlays. * This is only used in the AR overlay. */ static keepOnlyCenterMostDuplicate(codes: BarcodeItem[], originalImageSize: Size): void; }