Skip to content

Instantly share code, notes, and snippets.

@agathauy
Created September 29, 2019 12:37
Show Gist options
  • Save agathauy/00e8a2c1a261a64bf0a3743b9caffe26 to your computer and use it in GitHub Desktop.
Save agathauy/00e8a2c1a261a64bf0a3743b9caffe26 to your computer and use it in GitHub Desktop.
Snippet for showing opencv image in jupyter notebook
fig = plt.figure(figsize=(12, 5), dpi= 80, facecolor='w', edgecolor='k')
ax1 = fig.add_subplot(1,2,1)
ax1.imshow(cv.cvtColor(library1_img, cv.COLOR_BGR2RGB))
ax2 = fig.add_subplot(1,2,2)
ax2.imshow(cv.cvtColor(library2_img, cv.COLOR_BGR2RGB))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment