### System Information
Python version: 3.8.18
OpenCV python version: 4.9.0
…Operating System / Platform: Windows-10-10.0.19045-SP0
### Detailed description
```
cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\calib3d\src\calibration.cpp:1483: error: (-211:One of the arguments' values is out of range) The number of points in the view #0 is < 4 in function 'cvCalibrateCamera2Internal'
```
### Steps to reproduce
```
a = np.array([[[ 1.7379122 , 151.20229 , 147.24223 ]],
[[124.7301 , 241.39586 , 103.984085 ]],
[[123.93298 , 232.07417 , 55.491516 ]],
[[ 47.45232 , 69.05811 , 144.78935 ]],
[[ 7.1045322 , 84.077644 , 102.39535 ]]], dtype=np.float32)
b = np.array([[[196.52242 , 245.25883 ]],
[[166.80057 , 146.80276 ]],
[[149.4871 , 33.189487 ]],
[[ 4.4884953, 155.40897 ]],
[[223.3596 , 22.199896 ]]], dtype=np.float32)
c = (248, 239)
d = -1
e = np.array([[ 54.709503, 13.623212, 52.287144],
[ 83.650475, 38.88603 , 143.28778 ],
[165.09567 , 174.88637 , 90.716805]], dtype=np.float32)
f = np.array([[0.],
[0.],
[0.],
[0.],
[0.]], dtype=np.float32)
if len(a) >= 4 and len(b) >= 4:
# Example for initCameraMatrix2D, assuming imageSize and other requirements are met
cameraMatrix = cv2.calibrateCameraROExtended(a, b, c, d, e, f, None, None)
else:
print("Insufficient points for operation.")
```
### Issue submission checklist
- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)