python - Python open cv2 ip web cam 无法正常工作,显示错误
问题描述
Python open cv2 ip web cam 不工作它的显示错误....我的 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("正在捕获",frame)
推荐阅读
- vba - Excel VBA:尝试遍历列时运行时错误“13”类型不匹配
- python - 编写python程序创建列表并将第一个元素的数据类型转换为整数
- python - Tensorflow 输入函数返回无效值(Tensor 代替 Tensor dict)
- node.js - 无法获取 sequlize 模型
- algorithm - n种产品类型的定期排序
- c++ - 在 C++ 中更改整个结构的字节顺序
- mongodb - Parse ID 是确定性的吗?
- android - 我正在我的应用程序上集成 Instamojo,错误
- c# - 是否可以使用 xamarin.form 在我的应用程序中打开另一个应用程序?
- ruby-on-rails - 这是一个很好的急切加载优化吗?