Spaces:
Running
Running
Update pages/Info _of_Image.py
Browse files- pages/Info _of_Image.py +35 -0
pages/Info _of_Image.py
CHANGED
@@ -23,6 +23,33 @@ custom_css = """
|
|
23 |
p {
|
24 |
color: #FFFFFF; /* White text for paragraphs */
|
25 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</style>
|
27 |
"""
|
28 |
|
@@ -77,6 +104,14 @@ st.markdown("3.imwrite()")
|
|
77 |
st.markdown("4.cv2.waitkey()")
|
78 |
st.markdown("5.destroyallwindows()")
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
# Add a link to the code
|
81 |
st.markdown(
|
82 |
"<p style='font-size: 16px; color: White;'>"
|
|
|
23 |
p {
|
24 |
color: #FFFFFF; /* White text for paragraphs */
|
25 |
}
|
26 |
+
.stButton>button {
|
27 |
+
background-color: #4CAF50; /* Green */
|
28 |
+
color: white;
|
29 |
+
padding: 10px 24px;
|
30 |
+
border: none;
|
31 |
+
border-radius: 5px;
|
32 |
+
text-align: center;
|
33 |
+
font-size: 16px;
|
34 |
+
margin: 4px 2px;
|
35 |
+
transition-duration: 0.4s;
|
36 |
+
cursor: pointer;
|
37 |
+
}
|
38 |
+
.stButton>button:hover {
|
39 |
+
background-color: #45a049; /* Darker Green on hover */
|
40 |
+
color: white;
|
41 |
+
}
|
42 |
+
.stButton>div:nth-child(1)>button {
|
43 |
+
background-color: #2196F3; /* Blue */
|
44 |
+
}
|
45 |
+
.stButton>div:nth-child(2)>button {
|
46 |
+
background-color: #f44336; /* Red */
|
47 |
+
}
|
48 |
+
.stButton>div:nth-child(3)>button {
|
49 |
+
background-color: #FF9800; /* Orange */
|
50 |
+
}
|
51 |
+
</style>
|
52 |
+
"""
|
53 |
</style>
|
54 |
"""
|
55 |
|
|
|
104 |
st.markdown("4.cv2.waitkey()")
|
105 |
st.markdown("5.destroyallwindows()")
|
106 |
|
107 |
+
# Buttons for each stage
|
108 |
+
st.markdown("### Types of Data:")
|
109 |
+
col1, col2,col3 = st.columns(3)
|
110 |
+
|
111 |
+
with col1:
|
112 |
+
if st.button("Clor Space"):
|
113 |
+
st.markdown("Color space is used to get color image)
|
114 |
+
if st.button("Video Creation"):
|
115 |
# Add a link to the code
|
116 |
st.markdown(
|
117 |
"<p style='font-size: 16px; color: White;'>"
|