Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment