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
- Host: GitHub
- URL: https://github.com/hansalemaos/create_empty_image
- Owner: hansalemaos
- License: mit
- Created: 2022-12-29T07:42:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T07:44:09.000Z (about 3 years ago)
- Last Synced: 2025-04-01T13:04:06.617Z (11 months ago)
- Topics: cv2, numpy, python
- Language: Python
- Homepage: https://pypi.org/project/create-empty-image/
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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
```