def bitwise_and():
    small = cv.imread('C:/1/image/small.jpg')
    big = cv.imread('C:/1/image/big.jpg')
    small_hsv = cv.cvtColor(small, cv.COLOR_BGR2HSV)
    big_hsv = cv.cvtColor(big, cv.COLOR_BGR2HSV)
    '\n    h,s,v = cv.split(small_hsv)\n    print(h)\n    print(s)\n    print(v)\n    '
    lower_hsv = np.array([1, 120, 240])
    upper_hsv = np.array([4, 160, 255])
    mask = cv.inRange(big_hsv, lower_hsv, upper_hsv)
    dest = cv.bitwise_and(big_hsv, big_hsv, mask=mask)
    cv.imshow('mask', dest)
    cv.imshow('video', big)
def bitwise_and():
    small = cv.imread('C:/1/image/small.jpg')
    big = cv.imread('C:/1/image/big.jpg')
    small_hsv = cv.cvtColor(small, cv.COLOR_BGR2HSV)
    big_hsv = cv.cvtColor(big, cv.COLOR_BGR2HSV)
    '\n    h,s,v = cv.split(small_hsv)\n    print(h)\n    print(s)\n    print(v)\n    '
    lower_hsv = np.array([1, 120, 240])
    upper_hsv = np.array([4, 160, 255])
    mask = cv.inRange(big_hsv, lower_hsv, upper_hsv)
    dest = cv.bitwise_and(big_hsv, big_hsv, mask=mask)
    cv.imshow('mask', dest)
    cv.imshow('video', big)