Metadata-Version: 2.4
Name: morecvutils
Version: 1.0.2
Summary: Computer Vision utilities, OpenCV plot helpers for Optical Flow and Blob Analysis, AVI codec helpers
Home-page: https://github.com/scivision/morecvutils
Author: Michael Hirsch, Ph.D.
Author-email: scivision@noreply.users.github.com
Keywords: computer vision,opencv
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: numpy
Requires-Dist: imageio
Provides-Extra: tests
Requires-Dist: pytest; extra == "tests"
Provides-Extra: lint
Requires-Dist: flake8; extra == "lint"
Requires-Dist: mypy; extra == "lint"
Provides-Extra: plot
Requires-Dist: matplotlib; extra == "plot"
Requires-Dist: seaborn; extra == "plot"
Provides-Extra: opencv
Requires-Dist: opencv-python; extra == "opencv"
Dynamic: license-file

[![image](https://zenodo.org/badge/19711552.svg)](https://zenodo.org/badge/latestdoi/19711552)
[![Actions Status](https://github.com/scivision/morecvutils/workflows/ci_python/badge.svg)](https://github.com/scivision/morecvutils/actions)



[![Python versions (PyPI)](https://img.shields.io/pypi/pyversions/morecvutils.svg)](https://pypi.python.org/pypi/morecvutils)
[![Downloads](https://pepy.tech/badge/morecvutils)](https://pepy.tech/project/morecvutils)

# CVutils

Uses Python with
[OpenCV](https://scivision.dev/category/opencv/)
in miscellaneous demos of algorithms useful for computer vision.

Note: Line clipping was [moved to its own repo](https://github.com/scivision/lineclipping-python-fortran).

## Install

```sh
python -m pip install -e .
```

## Functions

* draw_flow()  given a 2-D complex Numpy array of optical flow `flow`, draw flow vectors with arrows
* draw_hsv() make a colored HSV image corresponding to flow direction and intensity at each point
* connectedComponents.py  given a binary image `morphed` and the `blobdet` from `setupblob()`, along with `img`, do connected components analysis
* OpticalFlow_Matlab_vs_Python.py   using Horn-Schunck optical flow estimation with OpenCV in Python. Not so obvious from the docs, and with notes on how to make this
  [match Matlab's vision.opticalFlowHS method](https://scivision.dev/opencv-cv-calcopticalflowhs-horn-schunck-smoothness-lambda-parameter/).
  [Install Matlab Engine for Python](https://scivision.dev/matlab-engine-callable-from-python-how-to-install-and-setup/)
