A little bit of change

This commit is contained in:
DiTheRX committed 2024-08-12 21:59:59 +03:00
1 parent 708ce17111
commit 584bdf1d80
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -268,6 +268,8 @@ class CameraWidget:
"http" not in value
and ".mp4" not in value
and "udp" not in value
and "COM" not in value
and "/dev/tty" not in value
and value not in self.camera_list
): # If http is not in camera address, add it.
self.config.capture_source = f"http://{values[self.gui_camera_addr]}/"
+1 -2
View File
@@ -3,10 +3,10 @@ import typing
from pygrabber.dshow_graph import FilterGraph
is_nt = True if os.name == "nt" else False
graph = FilterGraph()
def list_camera_names():
graph = FilterGraph()
cam_list = graph.get_input_devices()
cam_names = []
for index, name in enumerate(cam_list):
@@ -15,7 +15,6 @@ def list_camera_names():
def get_camera_index_by_name(name):
graph = FilterGraph()
cam_list = graph.get_input_devices()
for i, device_name in enumerate(cam_list):
+1
View File
@@ -11,3 +11,4 @@ pyserial
colorama
winotify
poetry
pygrabber