![](/img/trans.png)
[英]Visual Studio Code not recognizing Python Azure Function local library import
[英]Visual studio code doesn't import opencv library into python
我試圖編寫一個打開相機的 python 文件,只是當我寫import cv2
時它給了我一個錯誤
嘗試以下操作:
import cv2
vc = cv2.VideoCapture(0)
while True:
_, frame = vc.read()
cv2.imshow('frame', frame)
vc.release()
cv2.destroyAllWindows()
如果這不起作用,你能指定你的錯誤嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.