How to detect polygon line from the image

Hi guys,

I am searching a way to find polygon line (first inside polygon line from the center) from the image.

  1. Here is my original image:
    %20original_image

  2. Here is my mission:
    %20mission_image-2

Is there a way for my case ?

Thank you.