Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mstfldmr/45d6e47bb661800b982c39d30215bc88 to your computer and use it in GitHub Desktop.
Save mstfldmr/45d6e47bb661800b982c39d30215bc88 to your computer and use it in GitHub Desktop.

Revisions

  1. mstfldmr created this gist May 2, 2017.
    9 changes: 9 additions & 0 deletions Display OpenCV Image in Jupyter Notebook.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    from matplotlib import pyplot as plt
    import cv2

    img = cv2.imread('/Users/mustafa/test.jpg')
    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

    plt.imshow(gray)
    plt.title('my picture')
    plt.show()