Skip to main content

Utility functions to make life easy on Jupyter notebooks.

Project description

Jupyter CV Utils

License

This package contains utility functions to make life easier when using Jupyter notebooks.

Installation

  • With pip:

    pip install jupyter_cv_utils
    
  • Editable mode to develop and run tests, run the following in your virtualenv:

    # Clone the repository.
    git clone https://github.com/saratrajput/jupyter_cv_utils.git
    
    cd jupyter_cv_utils/
    pip install -e .[dev]
    

Usage

  • Import package.

    import jupyter_cv_utils as jutils
    
  • Install package.

    jutils.install("numpy")
    
  • Show image in matplotlib fashion.

    jutils.imshow("numpy")
    
  • Show image in OpenCV window.

    jutils.imshow_opencv("numpy")
    
  • Reload a module.

    jutils.reload(<module_name>)
    
  • Segment image based on color.

    lower_hsv = (Hue, Saturation, Value)
    upper_hsv = (Hue, Saturation, Value)
    jutils.segment_color(img, lower_hsv, upper_hsv)
    

    Hue is in the range 0 ~ 180. Saturation and Value are in the range 0 ~ 255.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-cv-utils-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

jupyter_cv_utils-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-cv-utils-0.1.0.tar.gz.

File metadata

  • Download URL: jupyter-cv-utils-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for jupyter-cv-utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86444a05a7cd697d9b5f6f259c4140c808625d76819978d99d8586bf2e9fc350
MD5 a8fd1d07cd8b74e0a3b0ba5290a35e1c
BLAKE2b-256 929f95a3fcf49788e91718d9c753c62f6c7213531e7e8c84a93d4b8e567260bd

See more details on using hashes here.

File details

Details for the file jupyter_cv_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_cv_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8c6e7970395eb907568df31e34d5a5aeb0540b2564a4a4b9de88f5c407495d
MD5 3b69e1d1ed43fcb4554427d553777a38
BLAKE2b-256 2477c3ff481f3f0c0d6ac5d0a7f7c133938a9ea55287a7f0fb9673e727c370da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page