Sathwikchowdary commited on
Commit
ccd367f
·
verified ·
1 Parent(s): bf3702a

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. pages/Info _of_Image.py +21 -16
pages/Info _of_Image.py CHANGED
@@ -23,7 +23,7 @@ custom_css = """
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;
@@ -50,11 +50,11 @@ custom_css = """
50
  }
51
  </style>
52
  """
53
- </style>
54
- """
55
 
56
  # Inject the CSS into the app
57
  st.markdown(custom_css, unsafe_allow_html=True)
 
 
58
  st.markdown("<h2 style='text-align: left; color: Black;'>What is IMAGE</h2>", unsafe_allow_html=True)
59
  st.markdown(
60
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
@@ -62,6 +62,7 @@ st.markdown(
62
  "</p>",
63
  unsafe_allow_html=True
64
  )
 
65
  st.markdown("<h2 style='text-align: left; color: Black;'>Features of IMAGE</h2>", unsafe_allow_html=True)
66
  st.markdown(
67
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
@@ -78,6 +79,7 @@ st.markdown(
78
  "</p>",
79
  unsafe_allow_html=True
80
  )
 
81
  st.markdown("<h2 style='text-align: left; color: Black;'>Basic Operations in IMAGE</h2>", unsafe_allow_html=True)
82
  st.markdown(
83
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
@@ -86,33 +88,36 @@ st.markdown(
86
  "</p>",
87
  unsafe_allow_html=True
88
  )
 
89
  st.markdown("<h3 style='text-align: left; color: Black;'>Why cv2 is Used</h3>", unsafe_allow_html=True)
90
  st.markdown(
91
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
92
  "cv2 is used for various ways like:"
93
- "1.Image Processing"
94
- "2.Video Analysis"
95
- "3.Feature Detection"
96
- "4.Image Transformations"
97
  "</p>",
98
  unsafe_allow_html=True
99
  )
 
100
  st.markdown("<h3 style='text-align: left; color: Black;'>Operations Used</h3>", unsafe_allow_html=True)
101
- st.markdown("1.imread()")
102
- st.markdown("2.imshow()")
103
- st.markdown("3.imwrite()")
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
- st.mnarkdown("video creation)
 
116
  # Add a link to the code
117
  st.markdown(
118
  "<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;
 
50
  }
51
  </style>
52
  """
 
 
53
 
54
  # Inject the CSS into the app
55
  st.markdown(custom_css, unsafe_allow_html=True)
56
+
57
+ # Page content
58
  st.markdown("<h2 style='text-align: left; color: Black;'>What is IMAGE</h2>", unsafe_allow_html=True)
59
  st.markdown(
60
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
 
62
  "</p>",
63
  unsafe_allow_html=True
64
  )
65
+
66
  st.markdown("<h2 style='text-align: left; color: Black;'>Features of IMAGE</h2>", unsafe_allow_html=True)
67
  st.markdown(
68
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
 
79
  "</p>",
80
  unsafe_allow_html=True
81
  )
82
+
83
  st.markdown("<h2 style='text-align: left; color: Black;'>Basic Operations in IMAGE</h2>", unsafe_allow_html=True)
84
  st.markdown(
85
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
 
88
  "</p>",
89
  unsafe_allow_html=True
90
  )
91
+
92
  st.markdown("<h3 style='text-align: left; color: Black;'>Why cv2 is Used</h3>", unsafe_allow_html=True)
93
  st.markdown(
94
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
95
  "cv2 is used for various ways like:"
96
+ "1. Image Processing"
97
+ "2. Video Analysis"
98
+ "3. Feature Detection"
99
+ "4. Image Transformations"
100
  "</p>",
101
  unsafe_allow_html=True
102
  )
103
+
104
  st.markdown("<h3 style='text-align: left; color: Black;'>Operations Used</h3>", unsafe_allow_html=True)
105
+ st.markdown("1. imread()")
106
+ st.markdown("2. imshow()")
107
+ st.markdown("3. imwrite()")
108
+ st.markdown("4. cv2.waitkey()")
109
+ st.markdown("5. destroyAllWindows()")
110
 
111
  # Buttons for each stage
112
  st.markdown("### Types of Data:")
113
+ col1, col2, col3 = st.columns(3)
114
 
115
  with col1:
116
+ if st.button("Color Space"):
117
+ st.markdown("Color space is used to get color image")
118
  if st.button("Video Creation"):
119
+ st.markdown("Video creation is used to generate a video from images or frames")
120
+
121
  # Add a link to the code
122
  st.markdown(
123
  "<p style='font-size: 16px; color: White;'>"