title: How do we get the coordinates of the shape through xml?
body: <p>Reading mouse coordinate values was successful. But I need to read the stored coordinate values through the xml.</p>
  
  <p>Value was retrieved using ElementTree.
  But once you've put it in an array, the shape of the coordinates is x,y, so the comma in the middle prevents integer conversion. And it's a string, so it's apostrophe on both ends, so you can't convert it.
  Please advise me.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;DA&gt;
      &lt;DetectionAreas&gt;2&lt;/DetectionAreas&gt;
      &lt;DetectArea&gt;
          &lt;Point&gt;0,0&lt;/Point&gt;
          &lt;Point&gt;1280,0&lt;/Point&gt;
          &lt;Point&gt;1280,720&lt;/Point&gt;
          &lt;Point&gt;0,720&lt;/Point&gt;
      &lt;/DetectArea&gt;
      &lt;Loitering&gt;
          &lt;Point&gt;625,564&lt;/Point&gt;
          &lt;Point&gt;625,0&lt;/Point&gt;
          &lt;Point&gt;1280,0&lt;/Point&gt;
          &lt;Point&gt;1280,631&lt;/Point&gt;
      &lt;/Loitering&gt;
  &lt;/DA&gt;
  
  </code></pre>
  
  <pre class="lang-py prettyprint-override"><code>import xml.etree.ElementTree as ET
  
  tree = ET.parse('./MapFile/C001101.map')
  root = tree.getroot()
  DetectPoint = root.getchildren()[1]
  LoiteringPoint = root.getchildren()[2] 
  IntrusionPoint = root.getchildren()[2]
  Ipointvalue = []
  Lpointvalue = []
  Dpointvalue = []
  
  
  if DetectPoint.tag == 'DetectArea' :
      for DPoint in root.findall("DetectArea/Point") :
          Dpointvalue.append(DPoint.text)
  if LoiteringPoint.tag == 'Loitering' :
      for LPoint in root.findall("Loitering/Point") :        
          Lpointvalue.append(LPoint.text)
  elif IntrusionPoint.tag == 'Intrusion' :
      for IPoint in root.findall("Intrusion/Point") :
          Ipointvalue.append(IPoint.text) 
  
  ip = len(Ipointvalue)
  lp = len(Lpointvalue)
  dp = len(Dpointvalue)
  
  for i in range(dp): 
      Dpointvalue[i]
      print(Dpointvalue[i])
  for i in range(lp):
      Lpointvalue[i]
      print(Lpointvalue[i])
  for i in range(ip):
      Ipointvalue[i]
      print(Ipointvalue[i])   
  
  '
  '
  '
      def onMouseCallback(self, event, x, y, flags, idx):
          if self.view_state == 'intrusion append' or self.view_state == 'loitering append' or self.view_state == 'counting append':
              if event == cv2.EVENT_LBUTTONUP and flags == cv2.EVENT_FLAG_LBUTTON:
                  works[idx].area_tmp.append([x, y])
                  #print(works[idx].area_tmp)
                  #print(Dpointvalue)
  </code></pre>
  
  <p>To create a polyline
  The coordinate values I wanted were x and y, but I want to ask for advice because it was recognized like this 'x,y'.</p>