hello everyone
im new in python
i want to get this image

this is wall image segmented by network
and seperate each wall like this with canny

in summary i want seperate each wall with canny python and fill them like that
can anybody help me to do this?
Amira BedhiafiPosted Mar 3, 2025, 1:31 PM
Load your image and convert it to grayscale, as edge detection works on single-channel images.
Then use the Canny algorithm to detect edges in the image.
Find contours from the edges detected. These contours will help you identify separate walls.
Draw each contour and fill them with a color.
Then display the original image, edges, and the filled contours.