Ask Your Question

Revision history [back]

How to provide flag arguments in pthon cv2 module function

I am wondering how we would provide the flag arguments for a function in the python cv2 module.

E.g. the cv2.findChessboardCorners() function. How would I provide the additional flags for example for cv2.CALIB_CB_ADAPTIVE_THRESH and cv2.CALIB_CB_FAST_CHECK.

By doing flags= cv2.CALIB_CB_ADAPTIVE_THRESH + cv2.CALIB_CB_FAST_CHECK or by flags= cv2.CALIB_CB_ADAPTIVE_THRESH | cv2.CALIB_CB_FAST_CHECK or something like this?