Open sagarnildass opened 4 years ago
img = cv2.imread(image_path, 0) blur = cv2.GaussianBlur(img,(5,5),0) ret3,th3 = cv2.threshold(blur,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
cv2.imwrite(output_path, th3)
I still get incorrect patches with the code above. The background of my new dataset is also white and the resolution is the same. Does anyone have any suggestions?
Sorry if this is a dumb question, but if I have a brand new dataset of different clothes, how do I generate the masks for them? I am seeing that the matlab file is very customized for viton data. Is there a different way in python which allows us to generate the masks of the clothes?