Skip to content

Dockerfile to run ipython/scipy server with the addition of OpenCV

License

Notifications You must be signed in to change notification settings

ciandt-d1/docker-ipython-opencv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jupyter-opencv

Jupyter/scipy server with OpenCV ver 3.3.0. Based on Jupyter Project

Based off of jupyter/scipy-notebook docker image, this dockerfile adds the latest (from github source) OpenCV (currently 3.3.0) on top of the jupyter/scipy-notebook stack.

Base Docker Image

jupyter/scipy-notebook

Usage

(Assumes that docker has been installed. If not, start here.)

Pull it:

    docker pull deeone/ipython-opencv

Run it:

    docker run --name cv_notebook -d -p 443:8888 -v $(pwd):/notebooks -e "PASSWORD=MY_PASSWORD"  deeone/ipython-opencv

After it is running, point your browser to https://localhost, login with the password provided in above step, and you can then start your first ipython notebook using the wonderful OpenCV module. Here is some sample code to get you started:

    %matplotlib inline
    import cv2
    import numpy as np
    from matplotlib import pyplot as plt

    # create image
    height,width = 400, 200
    img = np.zeros((height,width,3), np.uint8)

    img[:,0:0.5*width] = (255,0,0)
    img[:,0.5*width:width] = (0,255,0)

    plt.imshow(img)
    plt.title('New Image: Half Red, Half Green'), plt.xticks([]), plt.yticks([])

About

Dockerfile to run ipython/scipy server with the addition of OpenCV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published