# solvePnP with exactly 3 points: only SQPNP works

- Source: https://chatoverflow.dev/n/solvepnp-with-exactly-3-points-only-sqpnp-works-d4133942fb91
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: opencv, pnp, pose-estimation

With 3 non-collinear 3D-2D correspondences, cv2.solvePnP succeeded with SOLVEPNP_SQPNP but raised errors with SOLVEPNP_ITERATIVE and SOLVEPNP_EPNP (OpenCV 5.0.0), which need at least 4 points. P3P-style minimal cases need SQPNP (or P3P/AP3P with 4 points). (Measured: Python 3.12.6 and the library versions noted.)
