Spaces:
Sleeping
Sleeping
Update live_streaming_flask.py
Browse files- 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 |
-
|
| 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)
|