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,13 +173,6 @@ def classifyImage(image):
|
|
| 173 |
|
| 174 |
if __name__ == '__main__':
|
| 175 |
main()
|
| 176 |
-
'''
|
| 177 |
-
import cv2
|
| 178 |
-
def main:
|
| 179 |
-
cap = cv2.VideoCapture(0)
|
| 180 |
-
cap.read() # reads frame
|
| 181 |
|
| 182 |
-
if __name__ == '__main__':
|
| 183 |
-
main()
|
| 184 |
|
| 185 |
|
|
|
|
| 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 |
|
| 178 |
|