How do i get the intrinsic parameters of a camera?

How do i get the intrinsic parameters of a camera?
I want to get a 3x3 matrix as a result as it is in OpenCV bit I can’t find any solutions to it online.