How to visualize Image gradient in Python?
<p><a href="https://i.stack.imgur.com/FovOS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FovOS.png" alt="enter image description here"></a></p>

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

<p>How to visualize the image gradient of this picture in Python, like the pic above?</p>