title: Object detection and segmentation Using Python
body: <p>I am an undergraduate student. I am new to image processing and python.</p>
  
  <p>I have many images of plants samples and their description(called labels which are stuck on the sample) as shown in the below Figure. I need to Automatically segment only those labels from the sample.</p>
  
  <p>I tried thresholding based on colour, but it failed. Could you please suggest me an example to do this task. I need some ideas or codes to make it completely automatic segmentation.</p>
  
  <p>Please help me if you are experts in image processing and Python, I need your help to complete this task.</p>
  
  <p>The rectangle is detected on the Top Left, but it should be on bottom right. Could you please tell me where is my mistake and how to correct it.
  I have also given the code below.</p>