Use the package manager pip to install the requirements.
pip install -r requirements.txt
The predictObjectEdge takes 2 arguments, first one is Image Object which can be created by using PIL.Image and the second one is boundary. Experiment with the boundary value to get the best result. From my experience it's about 5-25.
from image_detection import predictObjectEdge
from PIL import Image
if __name__ == '__main__':
# load image
img = Image.open('sample_sunflower.jpg')
img_result = combineImage(img,predictObjectEdge(img, 15))
img_result.save('./result/result_sunflower' + '.jpg')
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.