mirror of
https://github.com/Project-Babble/ProjectBabble.git
synced 2026-12-01 22:32:30 -08:00
A little bit of change
This commit is contained in:
1 parent
708ce17111
commit
584bdf1d80
3 files changed
+4
-2
No files matched your search
@@ -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]}/"
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -11,3 +11,4 @@ pyserial
|
||||
colorama
|
||||
winotify
|
||||
poetry
|
||||
pygrabber
|
||||
Reference in new issue
Block a user