Recommended approach for extracting specific edges from image?
You might find my, or the other answers, from here helpful.

After advice about detecting focus quality of objects in a photo detected using YoloV3

I would have put this in a comment, but I can't include a pic there.

Perhaps you could come up with a better verbal description of how to define the edges of interest.