Skip to content

Commit 66b3bb3

Browse files
authored
Fixed "Module 'cv2' has no 'VideoCapture' member"
just did a little addition, which is line 4 and the error stopped.
1 parent e41ae63 commit 66b3bb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import cv2
22
import time
33
import threading
4+
from cv2 import cv2
45
from PIL import Image, ImageTk
56
from tkinter import Label, Button, Tk, PhotoImage
67

@@ -71,4 +72,4 @@ def StartCamera(self):
7172

7273
root = Tk()
7374
App = CameraApp(root)
74-
root.mainloop()
75+
root.mainloop()

0 commit comments

Comments
 (0)