Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV3 threshold question (cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

Hi... I am using OpenCV3 with Python and want to know what exactly happens when I use: thresh = cv2.threshold(blurred,100, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1] to threshold a frame of a video. What does OR mean here? (does it mean binary inverse will be applied to some frames and OTSU will be applied to other frame? on what basis?) Thanks.

OpenCV3 threshold question (cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

Hi... I am using OpenCV3 with Python and want to know what exactly happens when I use: thresh = cv2.threshold(blurred,100, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1] to threshold a frame of a video. What does OR mean here? (does it mean binary inverse will be applied to some frames and OTSU will be applied to other frame? on what basis?) Thanks.

OpenCV3 threshold question (cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

Hi... I am using OpenCV3 with Python and want to know what exactly happens when I use: use:

thresh = cv2.threshold(blurred,100, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1] cv2.THRESH_OTSU)[1]

to threshold a frame frames of a video. video, of course one at a time. What does OR mean here? (does it mean binary inverse will be applied to some frames and OTSU will be applied to other frame? frames? on what basis?) Thanks.

OpenCV3 threshold question (cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

Hi... I am using OpenCV3 with Python and want to know what exactly happens when I use:

thresh = cv2.threshold(blurred,100, cv2.threshold(frame,100, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

to threshold frames of a video, of course one at a time. What does OR mean here? (does it mean binary inverse will be applied to some frames and OTSU will be applied to other frames? on what basis?) Thanks.

click to hide/show revision 5
retagged

updated 2018-05-29 00:06:13 -0500

berak gravatar image

OpenCV3 threshold question (cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

Hi... I am using OpenCV3 with Python and want to know what exactly happens when I use:

thresh = cv2.threshold(frame,100, 255, cv2.THRESH_BINARY_INV | cv2.THRESH_OTSU)[1]

to threshold frames of a video, one at a time. What does OR mean here? (does it mean binary inverse will be applied to some frames and OTSU will be applied to other frames? on what basis?) Thanks.