How can I filter the pattern in the middle of the image to the white binary image. There’s always some noise in my filter*emphasized text
This is my code
img = cv.imread(‘phot/saidao6.jpg’)
gray_img = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
resize_img = cv.resize(gray_img, dsize=(500, 400))
kernel = np.ones((15, 15), np.uint8)
opening = cv.morphologyEx(resize_img, cv.MORPH_CLOSE, kernel)
r, b = cv.threshold(opening, 75, 255, cv.THRESH_BINARY)
what exactly do you need? it’s some kind of camo pattern.
you seem to want a mask/binarization. can you mock up such a mask in a photo editor?
if you really need the entire camo print area, that’ll be “texture analysis”.
it will certainly not be solved as easily as the previous post suggests.