page

package
v0.0.0-...-7e8a2ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package page implements scanned pages (as JPEG), which can either be already binarized or are binarized if not loaded to memory yet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct {
	// contains filtered or unexported fields
}

func Binarized

func Binarized(jpegBytes []byte, binarized *image.Gray, whitePct float64) *Any

func JPEGPageFromBytes

func JPEGPageFromBytes(b []byte) *Any

func (*Any) Binarized

func (p *Any) Binarized() (*image.Gray, float64, error)

func (*Any) JPEGBytes

func (p *Any) JPEGBytes() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL