Spaces:
Sleeping
Sleeping
Rename main.py to app.py
Browse files- main.py → app.py +1 -2
main.py → app.py
RENAMED
@@ -192,8 +192,7 @@ else:
|
|
192 |
ret,buffer=cv2.imencode('.jpg',frame)
|
193 |
frame=buffer.tobytes()
|
194 |
img = Image.open(io.BytesIO(frame))
|
195 |
-
|
196 |
-
results = model(img, size=640)
|
197 |
results.print()
|
198 |
img = np.squeeze(results.render())
|
199 |
img_BGR = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
|
|
192 |
ret,buffer=cv2.imencode('.jpg',frame)
|
193 |
frame=buffer.tobytes()
|
194 |
img = Image.open(io.BytesIO(frame))
|
195 |
+
results = FINAL(img)
|
|
|
196 |
results.print()
|
197 |
img = np.squeeze(results.render())
|
198 |
img_BGR = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|