Update app.py
Browse files
app.py
CHANGED
|
@@ -872,7 +872,7 @@ def drawAllContours(green2,img,number,finalColorArray,num1,num2,flag):
|
|
| 872 |
cv2.drawContours(imgArea1, [contour], 0, (0, 0, 255), 4)
|
| 873 |
|
| 874 |
|
| 875 |
-
alpha = 0.
|
| 876 |
image_new1 = cv2.addWeighted(imgArea1, alpha, imgtransparent1, 1 - alpha, 0)
|
| 877 |
# if flag=='area':
|
| 878 |
# cv2_imshow(image_new1)
|
|
|
|
| 872 |
cv2.drawContours(imgArea1, [contour], 0, (0, 0, 255), 4)
|
| 873 |
|
| 874 |
|
| 875 |
+
alpha = 0.4 # Transparency factor.
|
| 876 |
image_new1 = cv2.addWeighted(imgArea1, alpha, imgtransparent1, 1 - alpha, 0)
|
| 877 |
# if flag=='area':
|
| 878 |
# cv2_imshow(image_new1)
|