Spaces:
Sleeping
Sleeping
Update pages/7_Unstructured_data.py
Browse files- pages/7_Unstructured_data.py +53 -0
pages/7_Unstructured_data.py
CHANGED
|
@@ -122,5 +122,58 @@ if file_type == "IMAGE":
|
|
| 122 |
''')
|
| 123 |
elif data_type1 == "Color Space":
|
| 124 |
st.header('**Color Space**')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
|
|
|
|
| 122 |
''')
|
| 123 |
elif data_type1 == "Color Space":
|
| 124 |
st.header('**Color Space**')
|
| 125 |
+
st.markdown("""
|
| 126 |
+
There are 3 types of Color Spaces
|
| 127 |
+
<ul class="icon-bullet">
|
| 128 |
+
<li>Black & White Color Space </li>
|
| 129 |
+
<li>Gray Scale Color Space </li>
|
| 130 |
+
<li>RGB Color Space </li>
|
| 131 |
+
</ul>
|
| 132 |
+
""", unsafe_allow_html=True)
|
| 133 |
+
st.header('**Black & White Color Space**')
|
| 134 |
+
st.markdown('''
|
| 135 |
+
- It preserves only two colors which are **black(0) and white(1)**
|
| 136 |
+
- For converting image into numerical as the image is 2D format numpy is used
|
| 137 |
+
- Here there is no color preservation
|
| 138 |
+
- As image is represented in 0's and 1's which will be only in black and white in grid format
|
| 139 |
+
- To neglect the color preservation of black and white color space next gray scale is used
|
| 140 |
+
''')
|
| 141 |
+
st.header('**Gray Scale Color Space**')
|
| 142 |
+
st.markdown('''
|
| 143 |
+
- It preserves total 256 colors which is [0 - 255]
|
| 144 |
+
- Where 0 represent black and 255 represent white , [1 - 255] --> shades of grey color
|
| 145 |
+
- If the image is colored then the both gray scale and colorspace are not used
|
| 146 |
+
- Gray scale converts to different shades of gray
|
| 147 |
+
- Black and white converts to either black or white
|
| 148 |
+
''')
|
| 149 |
+
st.header('**RGB Color Space**')
|
| 150 |
+
st.markdown('''
|
| 151 |
+
- While converting image to numerical it can't convert as it has 3 colors --> as it converts to 3D array
|
| 152 |
+
- There are 3 channels in RGB Color Space
|
| 153 |
+
- *Red Channel*
|
| 154 |
+
- *Green Channel*
|
| 155 |
+
- *Blue Channel*
|
| 156 |
+
''')
|
| 157 |
+
st.subheader('**Red Channel**')
|
| 158 |
+
st.markdown('''
|
| 159 |
+
- It is 2D array which has [0 - 255]
|
| 160 |
+
- 0 means black and 255 is red , [0 - 255] between is shades of red
|
| 161 |
+
- Red channel is taken and kept at depth of 1 --> depth always represents color
|
| 162 |
+
- As it is always constant
|
| 163 |
+
''')
|
| 164 |
+
st.subheader('**Green Channel**')
|
| 165 |
+
st.markdown('''
|
| 166 |
+
- It is 2D array which has [0 - 255]
|
| 167 |
+
- 0 means black and 255 is green , [0 - 255] between is shades of green
|
| 168 |
+
- Red channel is taken and kept at depth of 2 --> depth always represents color
|
| 169 |
+
- As it is always constant
|
| 170 |
+
''')
|
| 171 |
+
st.subheader('**Blue Channel**')
|
| 172 |
+
st.markdown('''
|
| 173 |
+
- It is 2D array which has [0 - 255]
|
| 174 |
+
- 0 means black and 255 is blue , [0 - 255] between is shades of blue
|
| 175 |
+
- Red channel is taken and kept at depth of 3 --> depth always represents color
|
| 176 |
+
- The combination of 3 chnnels give 3D array where depth represents color and it is always constant
|
| 177 |
+
''')
|
| 178 |
|
| 179 |
|