Constructors

Properties

imageFilters: {
    BrightnessFilter: typeof BrightnessFilter;
    ColorDocumentFilter: typeof ColorDocumentFilter;
    ContrastFilter: typeof ContrastFilter;
    CustomBinarizationFilter: typeof CustomBinarizationFilter;
    GrayscaleFilter: typeof GrayscaleFilter;
    LegacyFilter: typeof LegacyFilter;
    ScanbotBinarizationFilter: typeof ScanbotBinarizationFilter;
    WhiteBlackPointFilter: typeof WhiteBlackPointFilter;
}

Type declaration

Accessors

  • get version(): string
  • Returns string

Methods

  • Parameters

    Returns Promise<ArrayBuffer>

    Deprecated

    Use the new ImageProcessor API instead (see createImageProcessor).

  • Parameters

    • Optional options: {
          mode: string;
      }
      • mode: string

    Returns Promise<OcrEngine>

  • Parameters

    • imageBuffer: ArrayBuffer
    • polygon: Polygon
    • rotations: number

    Returns Promise<any>

  • Parameters

    Returns Promise<BarcodeResult>

  • Parameters

    • imageBuffer: ArrayBuffer
    • Optional acceptedAngleScore: number
    • Optional acceptedSizeScore: number
    • Optional acceptedBrightnessThreshold: number

    Returns Promise<ContourDetectionResult>

  • Parameters

    • object: any
    • Optional source: string

    Returns Promise<void>

  • Parameters

    • imageBuffer: ArrayBuffer
    • rotations: number

    Returns Promise<ArrayBuffer>

  • Image Operations

    Parameters

    • imageBuffer: ArrayBuffer

    Returns Promise<string>

Generated using TypeDoc