# Error when retrieving pose data form MLCVCamera.GetFramePose

**URL:** <https://forum.magicleap.cloud/t/error-when-retrieving-pose-data-form-mlcvcamera-getframepose/2248>\
**Category:** General\
**Created:** [July 20, 2023, 3:08pm UTC](https://forum.magicleap.cloud/t/error-when-retrieving-pose-data-form-mlcvcamera-getframepose/2248 "2023-07-20T15:08:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattycorbett](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mattycorbett](https://forum.magicleap.cloud/u/mattycorbett)\
**Post date:** [July 20, 2023, 3:08pm UTC](https://forum.magicleap.cloud/t/error-when-retrieving-pose-data-form-mlcvcamera-getframepose/2248/1 "2023-07-20T15:08:23Z")

</div>

In the ML2 examples, specifically in the CVCamera Example, I keep getting erroneous values for the pose estimation. In both this example, in a second version I created using this example, the GetFramePose .IsOk returns false, and the GetPosition and rotation all return zeros. I checked the permissions, and the camera permission is enabled correctly. The video feed works fine, it just seems to be this pose metadata. Any ideas? Specifically at this line in the tutorial script "CVCameraExample.cs" lines 263-270.

if (MLCVCamera.GetFramePose(resultExtras.VCamTimestamp, out Matrix4x4 cameraTransform).IsOk)  
{  
poseText = "Cam Pose: "+ cameraTransform.GetPosition() + cameraTransform.rotation;  
}  
else  
{  
poseText = String.Empty;  
}

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [July 20, 2023, 6:55pm UTC](https://forum.magicleap.cloud/t/error-when-retrieving-pose-data-form-mlcvcamera-getframepose/2248/2 "2023-07-20T18:55:00Z")

</div>

Hi @mattycorbett can you share you OS and SDK version ? There was a bug in a previous version of the Unity SDK that prevented the camera pose from being reported correctly. I recommend trying the CV camera example using in the latest 1.8.0 Unity SDK.

---

<div class="post-metadata">

**Author:** ![mattycorbett](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mattycorbett](https://forum.magicleap.cloud/u/mattycorbett)\
**Post date:** [July 20, 2023, 7:38pm UTC](https://forum.magicleap.cloud/t/error-when-retrieving-pose-data-form-mlcvcamera-getframepose/2248/3 "2023-07-20T19:38:18Z")

</div>

That solved it! Im trying to localize 2D faces detected from camera frames using that matrix. Still working it... any tutorials that you know of?
