Spaces:
Sleeping
Sleeping
cam testing.
Browse files
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
|