Image process¶
The concept of this module is based on being able to apply different effects to input images using a common class and if necessary stack one effect on top of another to that image.
The epicenter of this module¶
Image transformations¶
- class
py2vision.image_process.resize_with_bbox.ResizeWithBBox(frame: py2vision.image_process.frame_decorator.Frame)[source]¶
- class
py2vision.image_process.resize.Resize(frame: py2vision.image_process.frame_decorator.Frame)[source]¶
- class
py2vision.image_process.rotate.Rotate(frame: py2vision.image_process.frame_decorator.Frame)[source]¶Concrete Decorators call the wrapped object and alter its result in some way.
How to use?¶
1 2 3 4 5 6 7 8 | from py2vision.image_process.frame_decorator import Frame from py2vision.image_process.resize import Resize width = 640 height = 720 img = cv.imread("AN_IMAGE_PATH") frame = Frame(img) frame_transformed = Resize(frame).apply(width, height) |