diff --git a/modules/globals.py b/modules/globals.py
index f03caf5..c392a80 100644
--- a/modules/globals.py
+++ b/modules/globals.py
@@ -26,3 +26,5 @@ headless = None
 log_level = 'error'
 fp_ui: Dict[str, bool] = {}
 nsfw = None
+camera_input_combobox = None
+webcam_preview_running = False
\ No newline at end of file
diff --git a/modules/ui.py b/modules/ui.py
index 71f596c..1d0bb69 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -257,11 +257,11 @@ def webcam_preview():
     global preview_label, PREVIEW
 
     cap = cv2.VideoCapture(0)  # Use index for the webcam (adjust the index accordingly if necessary)    
-    cap.set(cv2.CAP_PROP_FRAME_WIDTH, 854)  # Set the width of the resolution
-    cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480)  # Set the height of the resolution
+    cap.set(cv2.CAP_PROP_FRAME_WIDTH, 960)  # Set the width of the resolution
+    cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 540)  # Set the height of the resolution
     cap.set(cv2.CAP_PROP_FPS, 60)  # Set the frame rate of the webcam
-    PREVIEW_MAX_WIDTH = 854
-    PREVIEW_MAX_HEIGHT = 480
+    PREVIEW_MAX_WIDTH = 960
+    PREVIEW_MAX_HEIGHT = 540
 
     preview_label.configure(image=None)  # Reset the preview image before startup
 
diff --git a/requirements.txt b/requirements.txt
index 859654e..182f782 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,7 +2,7 @@
 
 numpy==1.23.5
 opencv-python==4.7.0.72
-onnx==1.14.0
+onnx==1.15.0
 insightface==0.7.3
 psutil==5.9.5
 tk==0.1.0