How to create a direction map for a fingerprint using Python

I have used edge filtering but from that point onward I am stuck…