Ask Your Question

OpenCV Video Masking

asked 2020-09-15 01:38:53 -0500

N_tail gravatar image

Is there a way to utilize this mask to view a region of interest of a video in python openCV?


Image Mask

Video Frame:

image description

Output video should only show what the white mask covers.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-09-15 02:00:20 -0500

berak gravatar image

you can use the mask with a lot of opencv functions, e.g.

dst = cv2.copyTo(src, mask)


dst = cv2.bitwise_or(src,src,mask)
edit flag offensive delete link more


How do you save the output

N_tail gravatar imageN_tail ( 2020-09-16 00:31:05 -0500 )edit

Question Tools

1 follower


Asked: 2020-09-15 01:38:53 -0500

Seen: 139 times

Last updated: Sep 15 '20