How to show image in livestream webcam in a specific position?

Hi there. I would like to know how to show an image on the very top or very bottom of the livestream webcam video, similar to the screenshot below.

image

I initially tried adding borders on the bottom of the webcam video so it have like an additional “space” and does not block the livestream video. But I can’t seem to find a way to add image onto the border. This is the current code I have at the moment.

import cv2

cap = cv2.VideoCapture(0)

while cap.isOpened():

    # Capture frame-by-frame
    ret, frame = cap.read()

    frame = cv2.flip(frame, 1)


    imageBorder = cv2.copyMakeBorder(frame, 0, 250, 0, 0 ,cv2.BORDER_CONSTANT,value=[0, 0, 0])
    cv2.imshow("try1", imageBorder)

    if cv2.waitKey(10) & 0xFF == ord('q'):
        break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()

It is alright if the image could not be add onto the border. But I would really like to know how to add an image onto the livestream webcam and how to specify the position of the image on the webcam.

I would really appreciate any help I can get on this. Thanks in advance.