Spaces:
Running
Running
Update pages/Info _of_Image.py
Browse files- pages/Info _of_Image.py +29 -18
pages/Info _of_Image.py
CHANGED
@@ -28,6 +28,8 @@ custom_css = """
|
|
28 |
|
29 |
# Inject the CSS into the app
|
30 |
st.markdown(custom_css, unsafe_allow_html=True)
|
|
|
|
|
31 |
st.markdown("<h2 style='text-align: left; color: Black;'>What is IMAGE</h2>", unsafe_allow_html=True)
|
32 |
st.markdown(
|
33 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
@@ -35,6 +37,8 @@ st.markdown(
|
|
35 |
"</p>",
|
36 |
unsafe_allow_html=True
|
37 |
)
|
|
|
|
|
38 |
st.markdown("<h2 style='text-align: left; color: Black;'>Features of IMAGE</h2>", unsafe_allow_html=True)
|
39 |
st.markdown(
|
40 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
@@ -44,44 +48,51 @@ st.markdown(
|
|
44 |
)
|
45 |
st.markdown(
|
46 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
47 |
-
"File Formats: Images can be stored in different formats,"
|
48 |
-
"JPEG/JPG
|
49 |
-
"PNG
|
50 |
-
"GIF
|
51 |
"</p>",
|
52 |
unsafe_allow_html=True
|
53 |
)
|
|
|
|
|
54 |
st.markdown("<h2 style='text-align: left; color: Black;'>Basic Operations in IMAGE</h2>", unsafe_allow_html=True)
|
55 |
st.markdown(
|
56 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
57 |
-
"For performing
|
58 |
"cv2 is the Python module for OpenCV (Open Source Computer Vision Library), a powerful library used for computer vision and image processing tasks. It provides a wide range of tools and algorithms for analyzing and manipulating images and videos."
|
59 |
"</p>",
|
60 |
unsafe_allow_html=True
|
61 |
)
|
|
|
|
|
62 |
st.markdown("<h3 style='text-align: left; color: Black;'>Why cv2 is Used</h3>", unsafe_allow_html=True)
|
63 |
st.markdown(
|
64 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
65 |
-
"cv2 is used for various
|
66 |
-
"1.Image Processing"
|
67 |
-
"2.Video Analysis"
|
68 |
-
"3.Feature Detection"
|
69 |
-
"4.Image Transformations"
|
70 |
"</p>",
|
71 |
unsafe_allow_html=True
|
72 |
)
|
|
|
|
|
73 |
st.markdown("<h3 style='text-align: left; color: Black;'>Operations Used</h3>", unsafe_allow_html=True)
|
74 |
-
st.markdown("1.imread()")
|
75 |
-
st.markdown("2.imshow()")
|
76 |
-
st.markdown("3.imwrite()")
|
77 |
-
st.markdown("4.cv2.
|
78 |
-
st.markdown("5.
|
79 |
|
80 |
-
# Add
|
81 |
st.markdown(
|
82 |
"<p style='font-size: 16px; color: White;'>"
|
83 |
-
"You can
|
84 |
-
"<a href='https://
|
|
|
85 |
"</p>",
|
86 |
unsafe_allow_html=True
|
87 |
)
|
|
|
28 |
|
29 |
# Inject the CSS into the app
|
30 |
st.markdown(custom_css, unsafe_allow_html=True)
|
31 |
+
|
32 |
+
# What is an Image
|
33 |
st.markdown("<h2 style='text-align: left; color: Black;'>What is IMAGE</h2>", unsafe_allow_html=True)
|
34 |
st.markdown(
|
35 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
|
|
37 |
"</p>",
|
38 |
unsafe_allow_html=True
|
39 |
)
|
40 |
+
|
41 |
+
# Features of an Image
|
42 |
st.markdown("<h2 style='text-align: left; color: Black;'>Features of IMAGE</h2>", unsafe_allow_html=True)
|
43 |
st.markdown(
|
44 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
|
|
48 |
)
|
49 |
st.markdown(
|
50 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
51 |
+
"File Formats: Images can be stored in different formats, such as:<br>"
|
52 |
+
"<b>JPEG/JPG:</b> Widely used for photographs and online images due to their efficient balance between quality and file size.<br>"
|
53 |
+
"<b>PNG:</b> Preferred for high-quality visuals or images requiring transparency, such as logos.<br>"
|
54 |
+
"<b>GIF:</b> Commonly utilized for basic animations or compact graphics."
|
55 |
"</p>",
|
56 |
unsafe_allow_html=True
|
57 |
)
|
58 |
+
|
59 |
+
# Basic Operations in Image
|
60 |
st.markdown("<h2 style='text-align: left; color: Black;'>Basic Operations in IMAGE</h2>", unsafe_allow_html=True)
|
61 |
st.markdown(
|
62 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
63 |
+
"For performing these basic operations, we use the <b>cv2</b> module from the OpenCV library.<br>"
|
64 |
"cv2 is the Python module for OpenCV (Open Source Computer Vision Library), a powerful library used for computer vision and image processing tasks. It provides a wide range of tools and algorithms for analyzing and manipulating images and videos."
|
65 |
"</p>",
|
66 |
unsafe_allow_html=True
|
67 |
)
|
68 |
+
|
69 |
+
# Why cv2 is Used
|
70 |
st.markdown("<h3 style='text-align: left; color: Black;'>Why cv2 is Used</h3>", unsafe_allow_html=True)
|
71 |
st.markdown(
|
72 |
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
73 |
+
"cv2 is used for various purposes, including:<br>"
|
74 |
+
"1. <b>Image Processing:</b> Tasks like filtering, resizing, and format conversion.<br>"
|
75 |
+
"2. <b>Video Analysis:</b> Techniques for video frame manipulation and analysis.<br>"
|
76 |
+
"3. <b>Feature Detection:</b> Identifying features such as edges, corners, or objects in images.<br>"
|
77 |
+
"4. <b>Image Transformations:</b> Rotations, translations, and other geometric operations."
|
78 |
"</p>",
|
79 |
unsafe_allow_html=True
|
80 |
)
|
81 |
+
|
82 |
+
# Operations Used
|
83 |
st.markdown("<h3 style='text-align: left; color: Black;'>Operations Used</h3>", unsafe_allow_html=True)
|
84 |
+
st.markdown("1. imread()")
|
85 |
+
st.markdown("2. imshow()")
|
86 |
+
st.markdown("3. imwrite()")
|
87 |
+
st.markdown("4. cv2.waitKey()")
|
88 |
+
st.markdown("5. destroyAllWindows()")
|
89 |
|
90 |
+
# Add links to the GitHub repositories
|
91 |
st.markdown(
|
92 |
"<p style='font-size: 16px; color: White;'>"
|
93 |
+
"You can explore the code examples on GitHub:<br>"
|
94 |
+
"<a href='https://github.com/Sathwik4119/IMAGE/blob/main/IMAGE.ipynb' target='_blank' style='color: #FFD700;'>IMAGE Creation</a><br>"
|
95 |
+
"<a href='https://github.com/Sathwik4119/IMAGE/blob/main/Basicoperations_on_image.ipynb' target='_blank' style='color: #FFD700;'>Basic Operations on Image</a>"
|
96 |
"</p>",
|
97 |
unsafe_allow_html=True
|
98 |
)
|