Skip to content

Utility functions to make life easier on Jupyter notebooks.

License

Notifications You must be signed in to change notification settings

saratrajput/jupyter_cv_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Utility functions to make life easier on Jupyter notebooks.

Resources

License

Stars

Watchers

Forks

Languages