Python extract multiple objects from image opencv
问题 I am trying to extract object from an image using the color using OpenCV, I have tried by inverse thresholding and grayscale combined with cv2.findContours() but I am unable to use it recursively. Furthermore I can't figure out how to "cut out" the match from the original image and save it to a single file. EDIT ~ import cv2 import numpy as np # load the images empty = cv2.imread("empty.jpg") full = cv2.imread("test.jpg") # save color copy for visualization full_c = full.copy() # convert to