Ask Your Question
0

OpenCV Video Masking

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

N_tail gravatar image

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

Mask:

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
0

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

berak gravatar image

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

dst = cv2.copyTo(src, mask)

or

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

Comments

How do you save the output

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

Question Tools

1 follower

Stats

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

Seen: 1,773 times

Last updated: Sep 15 '20