Tesseract.pix_read_pnm — Functionpix_read_pnm(
filename::AbstractString
)::Union{Pix, Nothing}Read a PNG image from the specified file. Returns nothing on error.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | filename | The name of the PNM file to load. |
pix_read_pnm(
stream::IO
)::Union{Pix, Nothing}Read a PNM image from the specified stream. Returns nothing on error.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | stream | The IO stream to read the PNM file from. |
Details:
This implementation mirrors the API provided by Leptonica when you pass in a FILE pointer. This assumes that the remainder of the stream contains a PNM image.
pix_read_pnm(
data::AbstractArray{UInt8}
)::Union{Pix, Nothing}Read a PNM image from the byte array. Returns nothing on error.
Arguments:
| T | Name | Default | Description |
|---|---|---|---|
| R | data | The byte array to read the PNM image from. |