We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab3760a commit e1c1007Copy full SHA for e1c1007
1 file changed
lib/python/qtvcp/widgets/camview_widget.py
@@ -51,6 +51,7 @@ def __init__(self, parent=None):
51
self.video = None
52
self.grabbed = None
53
self.frame = None
54
+ self._camNum = 0
55
self.diameter = 20
56
self.rotation = 0
57
self.scale = 1
@@ -166,7 +167,7 @@ def nextFrameSlot(self, w):
166
167
def showEvent(self, event):
168
if LIB_GOOD:
169
try:
- self.video = WebcamVideoStream(src=0).start()
170
+ self.video = WebcamVideoStream(src=self._camNum).start()
171
except:
172
LOG.error('Video capture error: {}'.format(self.video))
173
0 commit comments