'''
Read Images and Video
'''
import os 
import cv2 as cv
import numpy as np 

blank = np.zeros((400,400),dtype='uint8')

rectangle=cv.rectangle(blank.copy(),(30,30),(370,370),255,-1)
circle=cv.circle(blank.copy(),(200,200),180,255,-1)

cv.imshow('Rectangle',rectangle)
cv.imshow('Circle',circle)

# Bitwise And
bitwise_and=cv.bitwise_and(rectangle,circle)
cv.imshow('And',bitwise_and)

# Bitwise Or
bitwise_or=cv.bitwise_or(rectangle,circle)
cv.imshow('Or',bitwise_or)

# Bitwise NOT
bitwise_not=cv.bitwise_not(rectangle)
cv.imshow('Not',bitwise_not)

cv.waitKey(0)