Spaces:
Sleeping
Sleeping
update css color to transparent
Browse files- app.py +2 -2
- custom_component/frontend/style.css +3 -3
app.py
CHANGED
|
@@ -82,8 +82,8 @@ def main():
|
|
| 82 |
|
| 83 |
# crop and transform images for recognition
|
| 84 |
for box in boxes[::-1]:
|
| 85 |
-
org_image = cv2.polylines(org_image, [box.astype(
|
| 86 |
-
|
| 87 |
image = transform_image(org_image, box)
|
| 88 |
images.append(image)
|
| 89 |
|
|
|
|
| 82 |
|
| 83 |
# crop and transform images for recognition
|
| 84 |
for box in boxes[::-1]:
|
| 85 |
+
# org_image = cv2.polylines(org_image, [box.astype(
|
| 86 |
+
# np.int32)], isClosed=True, color=(0, 255, 0), thickness=2)
|
| 87 |
image = transform_image(org_image, box)
|
| 88 |
images.append(image)
|
| 89 |
|
custom_component/frontend/style.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
line-height: 1.6;
|
| 22 |
color: inherit;
|
| 23 |
user-select: none;
|
| 24 |
-
background-color:
|
| 25 |
border: transparent;
|
| 26 |
cursor: copy;
|
| 27 |
position: absolute; /* Absolute position for placement over the image */
|
|
@@ -29,11 +29,11 @@
|
|
| 29 |
|
| 30 |
.st-copy-to-clipboard-btn:hover {
|
| 31 |
border-color: rgb(255, 75, 75);
|
| 32 |
-
color:
|
| 33 |
}
|
| 34 |
|
| 35 |
.st-copy-to-clipboard-btn:active {
|
| 36 |
border-color: rgb(255, 75, 75);
|
| 37 |
-
background-color:
|
| 38 |
color: rgb(255, 255, 255);
|
| 39 |
}
|
|
|
|
| 21 |
line-height: 1.6;
|
| 22 |
color: inherit;
|
| 23 |
user-select: none;
|
| 24 |
+
background-color: rgba(255, 75, 75, 0.2);
|
| 25 |
border: transparent;
|
| 26 |
cursor: copy;
|
| 27 |
position: absolute; /* Absolute position for placement over the image */
|
|
|
|
| 29 |
|
| 30 |
.st-copy-to-clipboard-btn:hover {
|
| 31 |
border-color: rgb(255, 75, 75);
|
| 32 |
+
color: rgba(255, 75, 75, 0.5);
|
| 33 |
}
|
| 34 |
|
| 35 |
.st-copy-to-clipboard-btn:active {
|
| 36 |
border-color: rgb(255, 75, 75);
|
| 37 |
+
background-color: rgba(255, 75, 75, 0.5);
|
| 38 |
color: rgb(255, 255, 255);
|
| 39 |
}
|