semvec/pypi-packages huggingface dataset:
get-random-samples-of-picture 0.10
Get samples from a picture
License: MIT
Keywords: cv2,image,samples,crop


# Get samples from a picture 

```python
$pip install get-random-samples-of-picture
from get_random_samples_of_picture import get_random_samples

samples = get_random_samples(
    "https://github.com/hansalemaos/screenshots/raw/main/zoompics_0000001.png", # Allowed image formats: url/path/buffer/base64/PIL/np
    width=100,
    heigth=200,
    samples=10,
    save_folder="f:\\samples_from_pic", # will be ignored if None
    prefix="papag_",  # will be ignored if save_folder=None
    zfill=8,  # will be ignored if save_folder=None
)


```
### Original
<img src="https://github.com/hansalemaos/screenshots/raw/main/zoompics_0000001.png"/>


### Samples 
<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000000.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000001.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000002.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000003.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000004.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000005.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000006.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000007.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000008.png"/>


<img src="https://github.com/hansalemaos/screenshots/raw/main/papag_00000009.png"/>