About Camera Matrix From One Image

I want to get intrinsic and extrinsic matrices. I did with stereo camera on matlab once, about 9 years ago but I want to do this with one camera on python now. If you say that I should use calibration for this, I will follow this way.