Compare commits
	
		
			1 Commits 
		
	
	
		
			f38ebb485a
			...
			7e75f07879
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						7e75f07879 | 
| 
						 | 
				
			
			@ -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