Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 20, 2020 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/7af3cdbd078c9e07d55f4e44004d6fbd to your computer and use it in GitHub Desktop.
Save prateekjoshi565/7af3cdbd078c9e07d55f4e44004d6fbd to your computer and use it in GitHub Desktop.
diff_image = cv2.absdiff(grayB, grayA)
# perform image thresholding
ret, thresh = cv2.threshold(diff_image, 30, 255, cv2.THRESH_BINARY)
# plot image after thresholding
plt.imshow(thresh, cmap = 'gray')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment