Sathwikchowdary commited on
Commit
acb7dbf
·
verified ·
1 Parent(s): 081aec5

Update pages/Info _of_Image.py

Browse files
Files changed (1) hide show
  1. pages/Info _of_Image.py +78 -2
pages/Info _of_Image.py CHANGED
@@ -1,2 +1,78 @@
1
- st.markdown("<h2 style='color:black;'>Image Format</h2>", unsafe_allow_html=True)
2
- st.markdown("<h3 style='color:black;'>What is Image?</h3>", unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import numpy as np
4
+
5
+ # Custom CSS for styling
6
+ custom_css = """
7
+ <style>
8
+ html, body, [data-testid="stAppViewContainer"] {
9
+ background-image: linear-gradient(
10
+ rgba(0, 0, 0, 0.6),
11
+ rgba(0, 0, 0, 0.6)
12
+ ),
13
+ url("https://www.istockphoto.com/photo/tech-or-space-background-abstract-3d-illustration-gm1367865109-437999705?utm_source=pixabay&utm_medium=affiliate&utm_campaign=SRP_photo_sponsored&utm_content=https%3A%2F%2Fpixabay.com%2Fphotos%2Fsearch%2Fbackground%2520datascience%2F&utm_term=background+datascience.jpg");
14
+ background-size: cover;
15
+ background-position: center;
16
+ background-repeat: no-repeat;
17
+ background-attachment: fixed;
18
+ color: white; /* Ensures all text is readable */
19
+ }
20
+ h2, h3 {
21
+ color: #FFD700; /* Gold color for headings */
22
+ }
23
+ p {
24
+ color: #FFFFFF; /* White text for paragraphs */
25
+ }
26
+ </style>
27
+ """
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 (JSON)</h2>", unsafe_allow_html=True)
32
+ st.markdown(
33
+ "<p style='font-size: 16px; color: White; font-style: italic;'>"
34
+ "An image is a visual depiction of a subject, such as a person, object, scene, or idea, created or captured through means like photography, drawing, painting, or digital tools. It can take various forms, including photographs, illustrations, artworks, or computer-generated visuals."
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;'>"
41
+ "Pixels: Images are composed of small dots called pixels, each containing color data that together create the overall image."
42
+ "</p>",
43
+ unsafe_allow_html=True
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()")