'How to sharpen the image edges
I have been working on the background removal project, for that to segment the image I used u2net model. after that I used Image.BILINEAR to remove resample the image, then I convert into RGBA and deployed it in to aws . After converting that I have a little bit of shadow is remaining in the image edges,is there any way to remove the image edges shadow. This my original image. enter image description here
This is my background removal image enter image description here
here my code:
output = predict(model, np.array(image))
output = output.resize((image.size), resample=Image.BILINEAR) # remove resample
empty_img = Image.new("RGBA", (image.size), 0)
new_img = Image.composite(image, empty_img, output.convert("L"))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
