Merge 7e75f07879
into c08bec22e3
commit
f08857a013
|
@ -972,9 +972,11 @@ def webcam_preview(root: ctk.CTk):
|
|||
|
||||
def create_webcam_preview():
|
||||
global preview_label, PREVIEW
|
||||
|
||||
stream_url = 'http://192.168.0.103:4747'
|
||||
camera = cv2.VideoCapture(
|
||||
0
|
||||
# stream_url
|
||||
#7
|
||||
1, cv2.CAP_DSHOW
|
||||
) # Use index for the webcam (adjust the index accordingly if necessary)
|
||||
camera.set(
|
||||
cv2.CAP_PROP_FRAME_WIDTH, PREVIEW_DEFAULT_WIDTH
|
||||
|
|
Loading…
Reference in New Issue