Closed kkkmax closed 5 years ago
I got the same problem as @kkkmax
I got almost the same problem as this
Also, use the flower in the testdata but with slightly different scribbles will also cause this problem.
This issue involves at least two problems:
cv2.imwrite('vis.png', cv2.imread('scribbles.png') - cv2.imread('image.png'))
As you can see a lot of pixels have changed values. This might happen due to using of lossy compression for scribbles image (e.g. jpeg was used by @kkkmax and @wyshmily). Another possible source of these issue is color profile conversion in image editor.
I have tried adding scribbles with Gimp to image provided by @shyyhs and saving image with scribbles to png and haven't experienced these issue.
To summarize:
I use the same command:
The background area is marked with black, and the foreground area is marked with white, but the resulting picture looks like a grayscale image. Do I ignore any details?