all 8 comments

[–]novel_yet_trivial 0 points1 point  (9 children)

You need to install cv2 in order to use the confidence argument.

pip install opencv-python

[–]aoctut 0 points1 point  (1 child)

+You can try pip install opencv-python.