You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
549 B
11 lines
549 B
8 months ago
|
import type { ZXingModule } from "../core.js";
|
||
|
import type { ZXingEnum } from "./enum.js";
|
||
|
export declare const binarizers: readonly ["LocalAverage", "GlobalHistogram", "FixedThreshold", "BoolCast"];
|
||
|
export type Binarizer = (typeof binarizers)[number];
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
export type ZXingBinarizer = Record<Binarizer, ZXingEnum>;
|
||
|
export declare function binarizerToZXingEnum<T extends "reader" | "full">(zxingModule: ZXingModule<T>, binarizer: Binarizer): ZXingEnum;
|
||
|
export declare function zxingEnumToBinarizer(zxingEnum: ZXingEnum): Binarizer;
|