# How to estimate the real distance and angle from 2D Image?

Hi

I have done some 6D Pose estimation, and have the Oriented Bounding Box (OBB) of the detected object. So, now I would like to know the ground truth and get the error of the estimated orientation and the position. The detected object is a rectangular box as shown in the image. The red box in the image is the object and the black one is the estimated 6DPose.

So would like to do image postprocessing to get the error of the position and the orientation. So, how can get the error from this image, knowing the real dimensions of the box, camera parameters, and the distance from the camera to the object? Should I draw lines of the box and the 6D pose marker(black box) and get the distance and the angle between two lines or?

Thanks

how so ? code ?

if that's a cv::RotatedRect, it already has an angle

I want to know the ground truth so I can estimate the error of the Oriented Bounding Box. The 6D Pose estimation was done using the Point Cloud Library. I know the angle of the Marker but I need to know the ground truth. Understand now?