About Camera Matrix From One Image

For example glass in the photo. If we have x (2D image point) and X (3D world point) we can get P (camera matrix). It comes from the general formulation x = PX.