title: CoreML: iOS: How to get 2D coordinates of center of detected model
body: <p>I want to find the 2d coordinate system for the detected model so that I can raycast and get the 3d coordinate system. </p>
  
  <p>I am doing following steps</p>
  
  <ol>
  <li><p>Microsoft customvision.ai to train the models so that it can be detected with iOS CoreML</p></li>
  <li><p>Download my .mlmodel file from custom vision and load it in Xcode project</p></li>
  <li><p>Use vision framework in Xcode to the models.</p></li>
  </ol>
  
  <p>Up till this, I am able to identify the model and get the probability also. However, I am having the challenge to identify the center point of the detected model, based on which I want to overlay information on top of it.</p>
  
  <p>Please suggest if there are any supported frameworks available to identify the model coordinates with respect to screen coordinates. </p>
  
  <p>Typically, when following image is detected, it should identify the the center of the detected target. I have drawn red bounding box for reference.<a href="https://i.stack.imgur.com/rIhOU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rIhOU.jpg" alt="enter image description here"></a></p>