components.io.imagefilecv

pyctools.components.io.imagefilecv.ImageFileReaderCV

Read a still image file using OpenCV library.

pyctools.components.io.imagefilecv.ImageFileWriterCV

Write a still image file using OpenCV library.

class ImageFileReaderCV(config={}, **kwds)[source]

Bases: Component

Read a still image file using OpenCV library.

The file is read with minimum changes to the data, so a 16-bit depth file will result in a floating point image with data in the usual 0..255 range.

If you have a file format that OpenCV doesn’t recognise, try the ImageFileReaderPIL component instead.

Config

path

str

Path name of file to be read.

class ImageFileWriterCV(config={}, **kwds)[source]

Bases: Transformer

Write a still image file using OpenCV library.

See the OpenCV documentation for more detail on the parameters.

If you need to write a file format that OpenCV can’t do, try the ImageFileWriterPIL component instead.

Config

path

str

Path name of file to be written.

16bit

bool

Write a 16-bit depth file, if the format supports it.


Comments or questions? Please email jim@jim-easterbrook.me.uk.