vision_stuff
Tools for image conversion, which seems to be useful, at least for me.
Info
Collection of functions for convertion images with python opencv. For now one useful function is shrink_image and its derivative shrink_and_store_images_dir. It let us to shrink image(s), to specified size. Useful, when we have a couple of different shape images and want all of them to be e.g. 640x640.
Install
.. code-block:: python
pip install vision_stuff
Usage from python
.. code-block:: python
from vision_stuff import shrink_image
# example
img = cv2.imread('image_to_be_shrinked.png', 1)
out = shrink_image(img, 400, 400)
cv2.imwrite('out.png', out)
.. code-block:: python
from vision_stuff import shrink_and_store_images_dir
directory = 'different_shape_images'
shrink_and_store_images_dir(directory, width=640, height=640, resize=True)
# it convert images and store them into new directory named (directory + "_converted")
Example of "shrink_image" function
.. image:: examples/shrink_example.png
Example of "roll_layers" function
.. image:: examples/roll_layers_example.jpg
Example of "gradient_image" function
.. image:: examples/gradient.png
Example of "margin" function
.. image:: examples/margin.png
Todo status
03.06.2020, todo:
- add command line tools
- add more useful function/classes
02.08.2020, info:
- shrink_image fixed (it was bug in previous version :))
- roll_layers function added
- gradient_image function added
- margin function added
Metadata
Release files for vision-stuff 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vision_stuff-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for vision_stuff-0.1.3-py2.py3-none-any.whl |
Release files / vision_stuff-0.1.3-py2.py3-none-any.whl
| Download URL | vision_stuff-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2b772bb1ad269c1f73c1c3e9b41c6ff4b1f9028fb322c52dc375742cca460709
|
|
BLAKE2b-256 checksum How to use checksums |
ac2c1c2702bbbce54819f090d8596398ca3cffe29f57cafd718fe36dd65ca993
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.7.0
|
Security for vision-stuff 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.