semvec/pypi-packages huggingface dataset:
isometry 1.0.2
Package to get isometric image by three images
Requires Python: >=3.9
Keywords: isometry three images 3Ddimensions isometric

## Class to get isometric image by three images in Pillow/openCV formats

## How to use
Class ```Isometry``` can work with images opened by openCV or Pillow libraries.

#### Code example with openCV:
```
import cv2
from isometry import Isometry

front = cv2.imread('front.png')
end = cv2.imread('end.png'')
up = cv2.imread('up.png')

isometry_instance = Isometry(front_image=front, end_image=end, up_image=up)
isomentric_image = isometry_instance.get_isometric_image()
cv2.imwrite('isomentric_image.png', isomentric_image)
```
#### Code example with Pillow:
```
from PIL import Image
from isometry import Isometry

front = Image.open('front.png')
end = Image.open('end.png'')
up = Image.open('up.png')

isometry_instance = Isometry(front_image=front, end_image=end, up_image=up, is_pil_format=True)
isomentric_image = isometry_instance.get_isometric_image()
isomentric_image.save('isomentric_image_pil.png')
```
**Be careful: while using Pillow library parameter ```is_pil_format``` must be True (default value is False)**

#### Additional parameters
* ```angle``` - angle in degrees between three images in final isometric image (*default=30*);
* ```is_crop_white_background``` - if ```True``` -> white background on each three input images will be deleted (*default=False*)

## Isometric image example
![isometric_image](https://github.com/anton8963kobelev/isometry/blob/main/images/isometric_image.png?raw=true)