rosebe commited on
Commit
645663e
·
1 Parent(s): 06f9709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -42,12 +42,6 @@ import cv2
42
  # project = rf.workspace().project("ecosmart-pxc0t")
43
  # dataset = project.version(4).model
44
 
45
- # # Define the face detector function
46
- # def detect_image(image):
47
- # results = model(image)
48
-
49
- # return results.render()[0]
50
-
51
  # def detect_video(video):
52
  # HOME = os.path.expanduser("~")
53
  # pathDoneCMD = f'{HOME}/doneCMD.sh'
@@ -131,7 +125,12 @@ import cv2
131
  # clear_output()
132
  # print('Installation finished.')
133
 
134
-
 
 
 
 
 
135
  def detect_video(video):
136
  video = cv2.VideoCapture(video_path)
137
 
 
42
  # project = rf.workspace().project("ecosmart-pxc0t")
43
  # dataset = project.version(4).model
44
 
 
 
 
 
 
 
45
  # def detect_video(video):
46
  # HOME = os.path.expanduser("~")
47
  # pathDoneCMD = f'{HOME}/doneCMD.sh'
 
125
  # clear_output()
126
  # print('Installation finished.')
127
 
128
+ # Define the face detector function
129
+ def detect_image(image):
130
+ results = model(image)
131
+
132
+ return results.render()[0]
133
+
134
  def detect_video(video):
135
  video = cv2.VideoCapture(video_path)
136