Image
The image
module provides a flexible and powerful way to work with images.
Otary aims to make image processing easy and accessible to everyone.
Here is a sample python code to show what Otary can do:
import otary as ot
im = ot.Image.from_file(filepath="path/to/file/image")
im.crop(x0=50, y0=50, x1=450, y1=450)
im.rotate(angle=90, is_degree=True)
im.save(save_filepath="path/to/file/image")
im.show()
Components
The image
module is built around the following components:
- I/O: Responsible for reading and writing image data.
- Analysis: Perform image analysis tasks
- Transformers: Allows you to apply various transformations to the image, such as resizing, cropping, and color adjustments
- Drawer: Provides methods for drawing shapes and text on the image.
Behind the scene the components all use a base image class.