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: [Under construction]

  • 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.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

jupyter_cv_utils-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter-cv-utils-0.0.1.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.0.1.tar.gz
Algorithm Hash digest
SHA256 e34bc46fa2ac97da40cf1210d47b7b5773b2a6d004289f56e30c0ee9daed1a75
MD5 05c3b15d971e098653601c63292eee52
BLAKE2b-256 0e91afd1b6f9d9baddad1c2798e3e4c8c22492a1b39ee841cfcce2ba63f2d670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_cv_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc81eda3b67a4c56d2c2383e1f51e549c3f9ffbd15f94192607a816fd3f6d29f
MD5 0c06106bab60fc1782e6b6e28d2e4da9
BLAKE2b-256 6eab80a027c135a393af3baa5930b5970d0b2435c2d1434e697058dee4f9ad29

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