I have generated the edges using Canny edge detector now want to crop source image by those edges.
Is there any way to get.
- Left and Top Most
255
pixel location of image. - Right and Top Most
255
pixel location of image. - Left and Bottom Most
255
pixel location of image. - Right and Bottom Most
255
pixel location of image.
And crop that image based on that location. Using open cv or any other library using python.