title: opencv : set model position using rotation and translation vector
body: <p>I have a 3D model in unity. I calculate rotation and translation vector using opencv solvePnP vector.</p>
  
  <p>Now, I try to set model position with these values. My C# code is below : </p>
  
  <pre><code>Vector3 objPosition;
  objPosition.x = gameObject.transform.position.x + tvec.x;
  objPosition.y = gameObject.transform.position.y + tvec.y; 
  objPosition.z = gameObject.transform.position.z + tvec.z;
  gameObject.transform.position = objPosition;
  
  Quaternion quat = new Quaternion(rvec.x, rvec.y, rvec.z, 1.0f);
  gameObject.transform.rotation = quat;
  </code></pre>
  
  <p>But the result is not true for me. How can I use opencv rotation and translation vector in unity?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have a 3d model. I determine correspondencs point on object and model manually.I want to put on 2d image that contains a known object. I get camera and object relation using <code>solvePnp</code>.</p>
  
  <p>I use, to show 3d model on unity scene, opencv rotation and translation vector. Maybe I should change my question.</p>
  
  <p>How can I detect object position and orientation using 3d-2d point correspondences?</p>