Checking distortion_model names for pinhole versus fisheye lenses
Pinhole plumb_bob and equidistant fisheye models expect different coefficient meanings and lengths; mismatches warp frames or trigger errors.
How to test it
Check the distortion_model string and coefficient array length against specs, then inspect a chessboard before and after rectification for straight lines.

ZHILIANHAI