prthm11 commited on
Commit
51646fe
·
verified ·
1 Parent(s): 8412bf8

Update live_streaming_flask.py

Browse files
Files changed (1) hide show
  1. live_streaming_flask.py +3 -3
live_streaming_flask.py CHANGED
@@ -31,9 +31,9 @@ for path in [OUTPUT_FOLDER, IMAGE_FOLDER_PATH, DETECTED_IMAGE_FOLDER_PATH, PDF_F
31
  # for local webcam use
32
  camera= cv2.VideoCapture(0)
33
  # camera = cv2.VideoCapture("http://wmccpinetop.axiscam.net/mjpg/video.mjpg")
34
- ret, frame = camera.read()
35
- if not ret:
36
- raise RuntimeError("❌ Failed to connect to RTSP stream. Check URL or connectivity.")
37
 
38
  # Increase resolution if supported by the webcam
39
  # camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
 
31
  # for local webcam use
32
  camera= cv2.VideoCapture(0)
33
  # camera = cv2.VideoCapture("http://wmccpinetop.axiscam.net/mjpg/video.mjpg")
34
+ # ret, frame = camera.read()
35
+ # if not ret:
36
+ # raise RuntimeError("❌ Failed to connect to RTSP stream. Check URL or connectivity.")
37
 
38
  # Increase resolution if supported by the webcam
39
  # camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)