Since your image is quite flat, you can find homography between the image you get from the webcam and the desired image (in vertical position).
Edit: this will rotate the image vertically. After you registered your image (lifted it upright), you could make predictions by rows or columns (sum all the pixels along the columns to get one vector, sum all the pixels along the lines to get one vector). You can use these vectors to find out where you have the color jump, and crop it there.
Alternatively, you can use the Hough transform, which gives you lines in the image. You may be able to avoid registering the image if you do.
source share