Removing the upper corner part of the image
<p>I am using OpenCV and Python.</p>

<p>I want to remove the upper corner part of the image.</p>

<p>For example I have a image originally like this:
<a href="https://i.stack.imgur.com/ys7Wd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ys7Wd.jpg" alt="enter image description here"></a></p>

<p>Afterwards, I want to remove the upper triangle part.</p>

<p><a href="https://i.stack.imgur.com/y8mdk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y8mdk.jpg" alt="enter image description here"></a></p>

<p>Is there any method besides from "hard coding"?</p>