
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Tools for image conversion, which seems to be useful, at least for me.
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.
.. code-block:: python
pip install vision_stuff
.. 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")
.. image:: examples/shrink_example.png
.. image:: examples/roll_layers_example.jpg
.. image:: examples/gradient.png
.. image:: examples/margin.png
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
FAQs
tools for image conversion
We found that vision-stuff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.