Goal is to horizontally split an image (double newspaper page) in python based on a vertical centerline that is darker than other areas around.
Example image:
Had some luck using opencv (cv2
) for the initial crop and rotation of the double page from a black background using cv2.Canny
, and then sorting the contours based on cv2.contourArea
.
But, now I'm just interested in finding a center line and then splitting the image into two separate images. Using cv2.Canny
again I see that it's able to identify that centerline, but not sure how to identify that long, vertical line and use that to split the image:
End goal would be two images like the following:
Any suggestions would be most welcome.