prthm11 commited on
Commit
50dc708
·
verified ·
1 Parent(s): ed99222

Update live_streaming_flask.py

Browse files
Files changed (1) hide show
  1. live_streaming_flask.py +2 -2
live_streaming_flask.py CHANGED
@@ -24,10 +24,10 @@ JSON_FOLDER_PATH = os.path.join(OUTPUT_FOLDER, "EXTRACTED_JSON")
24
  for path in [OUTPUT_FOLDER, IMAGE_FOLDER_PATH, DETECTED_IMAGE_FOLDER_PATH, PDF_FOLDER_PATH, JSON_FOLDER_PATH]:
25
  os.makedirs(path, exist_ok=True)
26
 
27
- # camera = cv2.VideoCapture('rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream') # use 0 for web camera
28
  # for cctv camera use rtsp://username:password@ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp' instead of camera
29
  # for local webcam use
30
- camera= cv2.VideoCapture(0)
31
 
32
  # Increase resolution if supported by the webcam
33
  camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
 
24
  for path in [OUTPUT_FOLDER, IMAGE_FOLDER_PATH, DETECTED_IMAGE_FOLDER_PATH, PDF_FOLDER_PATH, JSON_FOLDER_PATH]:
25
  os.makedirs(path, exist_ok=True)
26
 
27
+ camera = cv2.VideoCapture('rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream') # use 0 for web camera
28
  # for cctv camera use rtsp://username:password@ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp' instead of camera
29
  # for local webcam use
30
+ # camera= cv2.VideoCapture(0)
31
 
32
  # Increase resolution if supported by the webcam
33
  camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)