Public | Automated Build

Last pushed: 2 years ago
Short Description
ipython/scipy server with OpenCV 3.x.
Full Description


Jupyter/scipy server with OpenCV ver 3.x. Based on Jupyter Project

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

Base Docker Image



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

Pull it:

    docker pull trafferty/jupyter-opencv

Run it:

    docker run --name cv_notebook -d -p 443:8888 -v $(pwd):/notebooks -e "PASSWORD=MY_PASSWORD"  trafferty/jupyter-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.title('New Image: Half Red, Half Green'), plt.xticks([]), plt.yticks([])
Docker Pull Command
Source Repository

Comments (0)