https://github.com/dhaase-de/dito

Yet another toolbox for the daily work with OpenCV under Python.

https://github.com/dhaase-de/dito

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

numpy opencv python
Last synced: 5 months ago · JSON representation

Repository

Yet another toolbox for the daily work with OpenCV under Python.

Basic Info
  • Host: GitHub
  • Owner: dhaase-de
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 1.06 MB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
numpy opencv python
Created almost 5 years ago · Last pushed 8 months ago
Metadata Files
Readme License

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

PyPI Version GitHub last commit Tests (subset) Tests (full) PyPI Python Versions License

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_shape and check_shape
  • added processing functions for non-maximum suppression (nms and nms_iter)
  • added convenience functions warp_affine, argmin, argmax, draw_rectangle, and showr
  • added more flexibility for save and load via optional argument np_kwargs (and also imwrite_params for save)
  • extended PaddedImageIndexer to allow an ellipsis (...) and step sizes > 1 and fixed the all-out-of-bounds case
  • add function fig_to_image to 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 save and load) OpenCV silently failing when reading/writing images with non-ASCII filenames under Windows
  • fixed gamma removing 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 pathlib filenames
  • 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 .npz format
  • added split_channels

v2.7.0 (2022-02-16) - Misc Update

  • added clahe wrapper
  • added argument keep_color_dimension to as_gray
  • fixed stack not 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_symbol with support for various symbols
  • added ColorBrewer colormaps
  • added mp_starmap as an easy-to-use wrapper for parallel processing tasks
  • added Slider class for easy-to-use OpenCV trackbar abstractions (namely ChoiceSlider, BoolSlider, IntegerSlider, and FloatSlider)
  • 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 PaddedImageIndexer which provides padded images when indexed beyond the image bounds
  • added astack to automatically stack images into an image of a given aspect ratio
  • improved pinfo (support for multiple possibly named images, filenames, short/extended infos, wrapper script dito_pinfo.py, ...)
  • added dog for getting the Difference-of-Gaussian of an image and its interactive version dog_interactive
  • added several more helper functions and improvements (e.g., load_multiple, create_colormap, raise of dito.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 text to 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., colorize working 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 MultiShow as extension of show which can also interactively re-show or save images
  • added VideoSaverand script dito_images_to_video.py
  • extended other IO functionality (CachedImageLoader, .npy support for save and load, and encode)
  • 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

GitHub Events

Total
  • Push event: 2
  • Create event: 1
Last Year
  • Push event: 2
  • Create event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 388
  • Total Committers: 1
  • Avg Commits per committer: 388.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 21
  • Committers: 1
  • Avg Commits per committer: 21.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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

  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 81 Last month
Rankings
Dependent packages count: 10.1%
Dependent repos count: 11.6%
Downloads: 19.1%
Average: 21.8%
Forks count: 29.8%
Stargazers count: 38.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

requirements.txt pypi
  • numpy >=1.13.3,<1.20.0
  • opencv-python >=3.0.0
.github/workflows/build-and-publish-docs.yml actions
  • actions/checkout v3 composite
  • actions/deploy-pages v2 composite
  • actions/setup-python v4 composite
  • actions/upload-pages-artifact v1 composite
.github/workflows/tests-full.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/tests-subset.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
requirements_build.txt pypi
  • docstr-coverage *
  • pdoc *
requirements_extended.txt pypi
  • PySide6 *
  • pylibCZIrw *
  • scikit-learn *
setup.py pypi