I have the following code that works great but it doesn't edges blur. I am using python and pixellib for change image background color. How can I change blur the edges after change background color of the image?
from pixellib.tune_bg import alter_bg
import os
root = os.getcwd()
UPLOAD_FOLDER = os.path.join(root, 'images/')
IMAGE_SAVE = os.path.join(root, 'temp/')
for image in os.listdir(UPLOAD_FOLDER):
input_image = UPLOAD_FOLDER + image
output_image_name = "new" + image
output_image = IMAGE_SAVE + output_image_name
print(input_image, output_image)
change_bg = alter_bg(model_type="pb")
change_bg.load_pascalvoc_model("xception_pascalvoc.pb")
output = change_bg.color_bg(input_image, colors=(195,6,6), output_image_name=output_image, detect="person")
I got this output