Metadata-Version: 2.1
Name: get_random_samples_of_picture
Version: 0.10
Summary: Get samples from a picture
Home-page: https://github.com/hansalemaos/get_random_samples_of_picture
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: cv2,image,samples,crop
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst


# 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"/>




