Spaces:
Runtime error
Runtime error
Commit
·
e5eff16
1
Parent(s):
3397b77
Update app.py
Browse files
app.py
CHANGED
|
@@ -132,16 +132,17 @@ def process_video(image_path):
|
|
| 132 |
|
| 133 |
stackedImage = utlis.stackImages(imageArray,0.5,lables)
|
| 134 |
# cv2.imshow("Result",stackedImage)
|
|
|
|
| 135 |
|
| 136 |
# SAVE IMAGE WHEN 's' key is pressed
|
| 137 |
|
| 138 |
# cv2.imwrite("Scanned/myImage"+str(count)+".jpg",imgFinal)
|
| 139 |
-
cv2.rectangle(stackedImage, ((int(stackedImage.shape[1] / 2) - 230), int(stackedImage.shape[0] / 2) + 50),
|
| 140 |
-
(1100, 350), (0, 255, 0), cv2.FILLED)
|
| 141 |
-
cv2.putText(stackedImage, "Scan Saved", (int(stackedImage.shape[1] / 2) - 200, int(stackedImage.shape[0] / 2)),
|
| 142 |
-
cv2.FONT_HERSHEY_DUPLEX, 3, (0, 0, 255), 5, cv2.LINE_AA)
|
| 143 |
# cv2.imshow('Result', stackedImage)
|
| 144 |
-
yield stackedImage
|
| 145 |
# cv2.waitKey(300)
|
| 146 |
count += 1
|
| 147 |
|
|
|
|
| 132 |
|
| 133 |
stackedImage = utlis.stackImages(imageArray,0.5,lables)
|
| 134 |
# cv2.imshow("Result",stackedImage)
|
| 135 |
+
yield stackedImage
|
| 136 |
|
| 137 |
# SAVE IMAGE WHEN 's' key is pressed
|
| 138 |
|
| 139 |
# cv2.imwrite("Scanned/myImage"+str(count)+".jpg",imgFinal)
|
| 140 |
+
# cv2.rectangle(stackedImage, ((int(stackedImage.shape[1] / 2) - 230), int(stackedImage.shape[0] / 2) + 50),
|
| 141 |
+
# (1100, 350), (0, 255, 0), cv2.FILLED)
|
| 142 |
+
# cv2.putText(stackedImage, "Scan Saved", (int(stackedImage.shape[1] / 2) - 200, int(stackedImage.shape[0] / 2)),
|
| 143 |
+
# cv2.FONT_HERSHEY_DUPLEX, 3, (0, 0, 255), 5, cv2.LINE_AA)
|
| 144 |
# cv2.imshow('Result', stackedImage)
|
| 145 |
+
# yield stackedImage
|
| 146 |
# cv2.waitKey(300)
|
| 147 |
count += 1
|
| 148 |
|