util_img#
img conversion#
|
Convert image to bytes. |
|
Convert PIL image to bytes. |
|
Convert OpenCV numpy array to image bytes. |
|
Convert image bytes to PIL image. |
|
Convert image bytes to OpenCV numpy array. |
img operations#
|
Check if the input object is a PIL image. |
|
Check if the input object is a CV image. |
|
Convert PIL image to CV image. |
|
Convert CV image to PIL image. |
|
Translate image with a given distance in x-axis and y-axis. |
|
Rotate image with a given angle at a given center. |
|
Rotate image with a given angle, and keep the whole image in the frame. |
|
Resize image. |
|
Show image in a window from image path or image array or PIL image object. |