Sathwikchowdary commited on
Commit
c055556
·
verified ·
1 Parent(s): bf46c6b

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. 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: Widely used for photographs and online images due to their efficient balance between quality and file size."
49
- "PNG: Preferred for high-quality visuals or images requiring transparency, such as logos."
50
- "GIF: Commonly utilized for basic animations or compact graphics."
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 this Basic Operations we use cv2 function from opencv library"
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 ways like:"
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.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;'>"
83
- "You can view and run the code in Colab: "
84
- "<a href='https://colab.research.google.com/drive/1fvP-k70HJnp1iCN7Vs-tkfFs8vq--WGc?usp=sharing' target='_blank' style='color: #FFD700;'>Colab Notebook</a>"
 
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
  )