This python script will allow us to extract borders of objects in an image.
sudo apt-get install python3
sudo apt-get install python3-pip
pip3 install numpy
pip3 install opencv-python
sudo apt-get install python3-tk
User should select an image and the script returns an output image of borders of the objects in it.
The input image is converted into binary format and then we use morphological transformation of dilation minus erosion.
Note The threshold value while converting an image into binary format needs to be adjusted for every image.
Github: invigorzz313