/tomni

Tomni is a collection of helper function for python opencv and numpy. Usefull for computer vision problems

Primary LanguagePythonApache License 2.0Apache-2.0

Tomni

Build Status Downloads

Tomni is a python package that contains a collection of helper functions based on OpenCV and NumPy. It can be used for any python based computer vision or image analysis problem. The package simplifies the code and takes care of edge cages, everything from simplifying code like img_dim to compute optimization like labels2contours or illumination correction image processing. Tomni uses the image coordinates (same as OpenCV).

Tomni is created by CytoSMART.

The package was developed in-house to centralize the helper function for computer vision problems. In 2021, CytoSMART engineers turned it to open source, enabling researchers and educators to use it for free.

Getting Tomni

pip install tomni

License

Tomni is free for academic and educational use.

For commercial use please contact CytoSMART.

The name

The name Tomni is a combination of creator (Tom) and other CytoSMART product he was working on, the Omni. Tomni name was proposed by Denissa Daroţi, a former CytoSMART intern, who won a bet with her mentor by getting a (well deserved) 9/10 for her internship.

Features

  • Bounding box fitting (bbox fitting)
    • Center bounding box fit
    • Custom location box fit
  • Image helpers
    • Get image dimensions
    • Convert color of an image
  • Illumination correction
    • Brightfield
    • Fluorescence
  • Contour operations
    • Get center
    • Approximate circle by area
    • Get roundness
    • Get circularity
  • Json operation
    • Add circularity property
    • Scale object
    • Translate object
  • Make a mask
    • Ellipse
    • Polygon
  • Shape fitting
    • Rect around ellipse
  • Transformers of data format
    • Contours to json
    • Ellipse to json
    • Json 2 contours
    • Json 2 label
    • Json 2 bbox
    • Labels 2 contours
    • Labels 2 lists of points

Credits

Sorted alphabetically

  • Coenraad Stijne
  • Denisa Daroţi
  • Hristo Atanasov
  • Jelle van Kerkvoorde
  • Kirsten Koopman
  • Manon van Erp
  • Marina Tzenkova
  • Tom de Vries
  • Tom Nijhof