8000 Cloth mask images are blank having white background · Issue #31 · sergeywong/cp-vton · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cloth mask images are blank having white background #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Akhileshkakade opened this issue May 22, 2020 · 1 comment
Open

Cloth mask images are blank having white background #31

Akhileshkakade opened this issue May 22, 2020 · 1 comment

Comments

@Akhileshkakade
Copy link

I was executing convert_data.m. Its creating cloth-mask images with white background images. Kindly help with this issue.

@JaquesM
Copy link
JaquesM commented Feb 2, 2021

Use this python code:

`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)`

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0