An open API service indexing awesome lists of open source software.

https://github.com/hansalemaos/create_empty_image

Creates new/empty cv2 images/numpy arrays
https://github.com/hansalemaos/create_empty_image

cv2 numpy python

Last synced: 11 months ago
JSON representation

Creates new/empty cv2 images/numpy arrays

Awesome Lists containing this project

README

          

# Creates new/empty cv2 images/numpy arrays

```python
$pip install create-empty-image

from create_empty_image import create_new_image, create_new_image_same_size

a = create_new_image_same_size(
openimage=r"https://github.com/hansalemaos/screenshots/raw/main/papag_00000003.png",
color=(255, 255, 0), # rgb
)

b = create_new_image(width=200, height=300, color=(0, 0, 120, 255)) # rgba
c = create_new_image(width=200, height=300, color=(120,)) # gray

```