A processor configured to execute instructions stored in memory to perform calibration of an endoscopic camera, the endoscopic camera comprising an endoscope and a camera, the camera comprising a camera head, wherein, when executed, the instructions cause the processor to:
- receive a lens descriptor associated with the endoscope, wherein the lens descriptor includes first calibration parameters indicating first characteristics of the endoscope independent of the endoscopic camera;
- with the endoscope installed in the endoscopic camera, acquire an image frame using the endoscopic camera;
- detect second characteristics of the image frame acquired using the endoscopic camera;
- calculate second calibration parameters using the lens descriptor and the second characteristics captured for the image frame, wherein the second calibration parameters are different from the first calibration parameters;
- and
- at least one of store and output the second calibration parameters to be used to operate the endoscopic camera.