python - Python Open CV2 IP网络摄像头无法正常工作,显示错误

标签 python opencv

Python打开cv2 ip网络摄像头无法正常工作,显示错误....我的ip也正确,但

cap = cv2.VideoCapture('http://192.168.4.18:8080/Image')

while True:

    ret, frame = cap.read()
    cv2.imgshow("Capturing",frame)
    #print('Running..')

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

错误
Traceback (most recent call last):
    cv2.imgshow("Capturing",frame)
AttributeError: module 'cv2.cv2' has no attribute 'imgshow'
>>> 

最佳答案

选中它这是招人喜欢的错误

cv2.imshow(“捕获”,框架)

关于python - Python Open CV2 IP网络摄像头无法正常工作,显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61882626/

相关文章:

python - 给定keras中隐藏层的输入,权重和偏差,如何获得隐藏层的输出?

opencv - 合并两个或多个部分重叠的图像

python - 使用Opencv创建幻灯片

java - OpenCV Android 人像模式全屏设置

python - 将二进制图像划分为 4x4 Python 并计算像素

python - 如何 !rm python_var (在 Jupyter 笔记本中)

python - R 中的 combn 函数等效于 Python(生成 n 个元素的所有组合)

python - 无法在 Python 3.5 DLL 加载失败时导入 cv2

python - 获取 groupby 的值计数和日期

python - 如何仅从 Python 的 Matplotlib 图中删除 y 轴的最高值?