Writer
The writer
module provides ways to write image data.
WriterImage module
WriterImage
WriterImage class that provide methods to save and show the image
Source code in otary/image/components/io/writer.py
save(save_filepath)
Save the image in a local file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
save_filepath
|
str
|
path to the file |
required |
show(title=None, figsize=(8.0, 6.0), color_conversion=cv2.COLOR_BGR2RGB, save_filepath=None)
Show the image
Parameters:
Name | Type | Description | Default |
---|---|---|---|
title
|
Optional[str]
|
title of the image. Defaults to None. |
None
|
figsize
|
tuple[float, float]
|
size of the figure. Defaults to (8.0, 6.0). |
(8.0, 6.0)
|
color_conversion
|
int
|
color conversion parameter. Defaults to cv2.COLOR_BGR2RGB. |
COLOR_BGR2RGB
|
save_filepath
|
Optional[str]
|
save the image if needed. Defaults to None. |
None
|