OpenCV Helper Tools
Project description
Rakali (Version 0.0.7)
Rakali is a imaging library and tool-set. It makes use of many other imaging libraries and frameworks and is also intended to be used as a pedagogical resource for those.
Named after Hydromys chrysogaster, the Australian Otter
Library usage
Library documentation generation is a work in progress...
Load and show image from file
from rakali import Image
Image.from_file('rakali.jpg').show()
Load, annotate, and show image
#! /usr/bin/env python
from rakali import Image
img: Image = Image.from_file('rakali.jpg')
img.add_text(labels=['Rakali', 'Hydromys chrysogaster'])
img.show()
img.write('rakali-text.jpg')
cli usage
Rakali ships with a small demo app that exercises the library functionality.
$ rakali --help
Usage: rakali [OPTIONS] COMMAND [ARGS]...
Rakali image tools
Provide either a input file or a input URL for image source
Options:
--version Show the version and exit.
-i, --input-file PATH Use file
-u, --input-url TEXT Fetch image from URL
-o, --output-file PATH Output file [default: out.jpg]
--help Show this message and exit.
Commands:
resize Resize the input image preserving aspect ratio, favoring width
rotate Rotate the input image
rotate-bounded Rotate the input image, keeping bound in place
skeletonize Skeletonize the input image
Install
Rakali is essentially a OpenCV shim and installs the current (unofficial) opencv-python wheel from PyPi. If you have a custom OpenCV build, make sure that installing Rakali does not clobber that.
pypi
Rakali is in pypi:
$ pip install rakali
Manual install
Clone or download this repo and in your virtualenv do:
$ pip install .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for rakali-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7cfbd44a1696151867c8f09cd0c9acd466ba4c0b9dfe7d5fde5b811c9f02c17 |
|
MD5 | 2adec4849873c16daa9e3f98a77f551d |
|
BLAKE2b-256 | 1d02b4950e54e94939bfb213689dd2eaa69ed3b0069ab0d6c85dbcccaccdf071 |