sherpal25 commited on
Commit
5781759
·
1 Parent(s): 1a63bf3

cam testing.

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import cv2
3
  import os
4
  from backend import *
5
-
6
  # Create a folder to save captured images
7
  if not os.path.exists("captured_images"):
8
  os.makedirs("captured_images")
@@ -173,3 +173,7 @@ def classifyImage(image):
173
 
174
  if __name__ == '__main__':
175
  main()
 
 
 
 
 
2
  import cv2
3
  import os
4
  from backend import *
5
+ '''
6
  # Create a folder to save captured images
7
  if not os.path.exists("captured_images"):
8
  os.makedirs("captured_images")
 
173
 
174
  if __name__ == '__main__':
175
  main()
176
+ '''
177
+ import cv2
178
+ cap = cv2.VideoCapture(0)
179
+ cap.read() # reads frame