使用 OpenCV-Python 将图像添加到实时摄像机馈送中

原文:https://www . geesforgeks . org/add-image-to-a-live-camera-feed-use-opencv-python/

在本文中,我们将学习如何使用 Python 中的 OpenCV 在您的实时相机提要中插入图像。

逐步实施

步骤 1:导入库

CV 以 NumPy 数组的形式读取和存储所有图像。我们需要 NumPy 库来操作图像,正如预期的那样,我们需要 cv2 模块。

Python 3

# imorting libraries
import cv2
import numpy as np