Does anyone know the focal length(mm) of RGB camera?
Image size is 640*480.
I don't know whether I'm right or not. As the focal length in pixels is 525(default) and the pixel size is 2.8 um, then the focal length is 525*2.8 um = 0.147 cm, which is needed to use my robot model.
I've used this parameter to implement conversion from image coordinate to camera coordinate. But it turns out a big error.
I could be wrong but to me it seems you are trying to calculate 3D (Camera-) coordinates of a point using it's 2D (Image-) coordinates. That's not possible without the use of a stereo camera or a structure from motion approach.
It is possible if the real object dimensions are known. cv2.solvePNP provides a simple method for that, see: https://docs.opencv.org/2.4/modules/c...