Spaces:
Runtime error
Runtime error
Commit ·
1d6fc38
1
Parent(s): 8f38119
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def process_video(image_path):
|
|
| 121 |
imageArray = ([img,imgGray,imgCanny,imgContours],
|
| 122 |
[imgBigContour,imgThresh,imgWarpColored,imgFinal])
|
| 123 |
# cv2.imshow("Final Result", imgFinal)
|
| 124 |
-
yield imgFinal,None
|
| 125 |
except:
|
| 126 |
imageArray = ([img,imgGray,imgCanny,imgContours],
|
| 127 |
[imgBlank, imgBlank, imgBlank, imgBlank])
|
|
@@ -133,7 +133,7 @@ def process_video(image_path):
|
|
| 133 |
stackedImage = utlis.stackImages(imageArray,0.5,lables)
|
| 134 |
# cv2.imshow("Result",stackedImage)
|
| 135 |
stackedImage = cv2.resize(stackedImage,(900,800))
|
| 136 |
-
yield
|
| 137 |
|
| 138 |
# SAVE IMAGE WHEN 's' key is pressed
|
| 139 |
|
|
|
|
| 121 |
imageArray = ([img,imgGray,imgCanny,imgContours],
|
| 122 |
[imgBigContour,imgThresh,imgWarpColored,imgFinal])
|
| 123 |
# cv2.imshow("Final Result", imgFinal)
|
| 124 |
+
# yield imgFinal,None
|
| 125 |
except:
|
| 126 |
imageArray = ([img,imgGray,imgCanny,imgContours],
|
| 127 |
[imgBlank, imgBlank, imgBlank, imgBlank])
|
|
|
|
| 133 |
stackedImage = utlis.stackImages(imageArray,0.5,lables)
|
| 134 |
# cv2.imshow("Result",stackedImage)
|
| 135 |
stackedImage = cv2.resize(stackedImage,(900,800))
|
| 136 |
+
yield imgFinal,stackedImage
|
| 137 |
|
| 138 |
# SAVE IMAGE WHEN 's' key is pressed
|
| 139 |
|