https://github.com/dhaase-de/dito
Yet another toolbox for the daily work with OpenCV under Python.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.8%) to scientific vocabulary
Keywords
Repository
Yet another toolbox for the daily work with OpenCV under Python.
Basic Info
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Python Package dito
dito is yet another toolbox for the daily work with OpenCV under Python.
It provides convenience wrappers for frequently used image-related functionalities in OpenCV and NumPy, as well as additional functionality built on top of them.
Status
Documentation
API documentation is available online at https://dhaase-de.github.io/dito/.
To build the documentation locally (into the subdir docs/), run
pip install -r requirements_build.txt
./scripts/build_docs.sh
Requirements
See requirements.txt for version details.
Installation
For production:
* either install via pip install --upgrade dito, or
* download wheel from PyPI and install it via pip install dito-x.y.z-py3-none-any.whl
For development:
1. clone this repository via git clone https://github.com/dhaase-de/dito.git, and
2. run scripts/build_install_dev.sh (which is equivalent to python3 setup.py develop --user)
Tests
Use scripts/run_tests.sh to run all unit tests.
This is equivalent to python3 -m dito.tests --verbose.
Changelog
v2.13.0 (2025-06-13) - QoL Update III
- added shape-related functions
parse_shapeandcheck_shape - added processing functions for non-maximum suppression (
nmsandnms_iter) - added convenience functions
warp_affine,argmin,argmax,draw_rectangle, andshowr - added more flexibility for
saveandloadvia optional argumentnp_kwargs(and alsoimwrite_paramsforsave) - extended
PaddedImageIndexerto allow an ellipsis (...) and step sizes > 1 and fixed the all-out-of-bounds case - add function
fig_to_imageto turn a Matplotlib figure into a NumPy image
v2.12.0 (2024-04-09) - CZI support
- added support to read and write CZI image files (as a wrapper for the library
pylibCZIrw)
v2.11.1 (2023-11-28) - Bugfixes
- fixed (in the wrapper functions
saveandload) OpenCV silently failing when reading/writing images with non-ASCII filenames under Windows - fixed
gammaremoving the third image axis if it was of size one
v2.11.0 (2023-06-08) - Hash Update
- added hash functions
hash_image,hash_image_any_row_order,hash_file, etc. - minor improvements and fixes
v2.10.0 (2023-05-12) - Documentation Update
- added documentation framework based on pdoc
- added/revised docstrings for all objects
- minor improvements and fixes
v2.9.0 (2023-04-19) - QoL Update II
- added convenience image difference functions
clipped_diff,abs_diff,shifted_diff - added convenience constant color overlay function
overlay_constant - added support for
pathlibfilenames - added Qt6 image conversion
- improved
pinfo(minimal mode, wrapper script change, bugfix) - fixed NumPy-related issues
v2.8.0 (2022-04-05) - PCA Update
- added PCA and NMF-based texture models
- added load/save support for the
.npzformat - added
split_channels
v2.7.0 (2022-02-16) - Misc Update
- added clahe wrapper
- added argument
keep_color_dimensiontoas_gray - fixed
stacknot working for float64 images - started refactoring some old tests
v2.6.0 (2021-12-19) - Data Update
- added test image generator
- added USC-SIPI test image 4.1.07 (jelly beans)
- minor improvements and fixes
v2.5.0 (2021-10-21) - QoL Update
- added funtion
draw_symbolwith support for various symbols - added ColorBrewer colormaps
- added
mp_starmapas an easy-to-use wrapper for parallel processing tasks - added
Sliderclass for easy-to-use OpenCV trackbar abstractions (namelyChoiceSlider,BoolSlider,IntegerSlider, andFloatSlider) - added aliases for morphological operations and helper functions (
dilate,erode,tophat,morpho_op_kernel, ...) - added commonly needed padding and cropping wrappers (
center_pad_to,center_crop_to,center_pad_crop_to) - added
PaddedImageIndexerwhich provides padded images when indexed beyond the image bounds - added
astackto automatically stack images into an image of a given aspect ratio - improved
pinfo(support for multiple possibly named images, filenames, short/extended infos, wrapper scriptdito_pinfo.py, ...) - added
dogfor getting the Difference-of-Gaussian of an image and its interactive versiondog_interactive - added several more helper functions and improvements (e.g.,
load_multiple,create_colormap, raise ofdito.QkeyException, ...)
v2.4.0 (2021-07-13) - Contour Update
- added support for contour finding and handling (
Contour,ContourList,ContourFinder,VoronoiPartition) - added aliases for color conversion (
convert_color,bgr_to_hsv,hsv_to_bgr) - added efficient gamma function (
gamma) - added several more helper functions and improvements (
grid,gaussian_blur,is_(integer|float|bool)_(dtype|image),save_tmp, ...)
v2.3.0 (2021-05-26) - Text Update II
- improved text drawing (e.g. margin, padding, border, rotation, alignment, support for ANSI escape sequences, greek alphabet, outline background mode, width shrinking)
- added some helper functions (which were needed for improved text drawing), e.g.
insert,constant_image,rotate*,dilate,pad
v2.2.0 (2021-04-09) - Text Update
- added/improved support for other (optional) image showing engines (
IPython,matplotlib.pyplot,pygame) - added support for bitmap font handling (class
MonospaceBitmapFont) - added bitmap fonts "Scientifica", "Source Code Pro", "Tamzen", and "Terminus"
- changed
textto use bitmap fonts instead of OpenCV's font handling and improved text drawing functionality (e.g., support for opacity, color, absolute positioning) - added many smaller improvements and fixes (e.g.,
colorizeworking with custom colormaps for OpenCV<3.3.0) - added several helper functions (e.g.,
as_channels)
v2.1.0 (2021-03-14) - IO Update
- added
MultiShowas extension ofshowwhich can also interactively re-show or save images - added
VideoSaverand scriptdito_images_to_video.py - extended other IO functionality (
CachedImageLoader,.npysupport forsaveandload, andencode) - added synthetic image generators (
checkerboard,background_checkerboard,random_image) - added several helper functions (e.g.,
now_str,human_bytes) - fixed some minor issues (e.g., handling of empty dirs in
mkdir)
v2.0.0 (2021-03-09) - Initial Version
- initial release, based in large parts on
dh.image
Owner
- Name: dhaase-de
- Login: dhaase-de
- Kind: user
- Repositories: 4
- Profile: https://github.com/dhaase-de
GitHub Events
Total
- Push event: 2
- Create event: 1
Last Year
- Push event: 2
- Create event: 1
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Daniel Haase | g****t@d****e | 388 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 81 last-month
- Total dependent packages: 0
- Total dependent repositories: 2
- Total versions: 15
- Total maintainers: 1
pypi.org: dito
Yet another toolbox for the daily work with OpenCV under Python
- Homepage: https://github.com/dhaase-de/dito
- Documentation: https://dito.readthedocs.io/
- License: MIT License
-
Latest release: 2.13.0
published 8 months ago
Rankings
Maintainers (1)
Dependencies
- numpy >=1.13.3,<1.20.0
- opencv-python >=3.0.0
- actions/checkout v3 composite
- actions/deploy-pages v2 composite
- actions/setup-python v4 composite
- actions/upload-pages-artifact v1 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- docstr-coverage *
- pdoc *
- PySide6 *
- pylibCZIrw *
- scikit-learn *