Tag Archives: cv2

[Solved] cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function “pointPolygonTest“

python   Running error: CV2. Error: opencv (4.5.3): – 1: error: (- 5: bad argument) in function “pointpolygontest”

The solution is simple because the CV2 version is not compatible

Step 1: uninstall the installed version

Step 2: install the old version

Step 3:   Confirm successful installation

The above error will not be reported during operation.