Other ways to detect edges?

Okay thanks for your help so far! I will try out some things and come back to you!