Spaces:
Sleeping
Sleeping
Update pages/7_Unstructured_data.py
Browse files128 unmodified lines1291301311321331341356 unmodified lines14214314414514614714812 unmodified lines1611621631641651666 unmodified lines173174175176177178179128 unmodified lines- Especially images are handled by pil --> pillow- These operations are essential for tasks such as image processing, computer vision.""")st.markdown("""- OpenCV allows users to perform basic operations like reading, displaying, and saving images.- Along with that it also performs resizing, cropping, and filtering of images based on requirements.6 unmodified lines- **`imwrite()`**: Saves the image to a specified location on your storage.```python# Example Usage of OpenCV Functionsimage = cv2.imread('path')# Reads an image - it always converts to 3D array which uses RGB color space12 unmodified linescv2.resize(image)# Resizes an image to a given dimension.""", unsafe_allow_html=True)6 unmodified lines<li>Gray Scale Color Space </li><li>RGB Color Space </li></ul>""", unsafe_allow_html=True)st.header('**Black & White Color Space**')st.markdown('''- It preserves only two colors which are **black(0) and white(1)**128 unmodified lines1291301311321331341356 unmodified lines14214314414514614714812 unmodified lines1611621631641651661671681691701711721731741751761771781791801811821836 unmodified lines190191192193194195196128 unmodified lines- Especially images are handled by pil --> pillow- These operations are essential for tasks such as image processing, computer vision.""")st.subheader('**Image Operations**')st.markdown("""- OpenCV allows users to perform basic operations like reading, displaying, and saving images.- Along with that it also performs resizing, cropping, and filtering of images based on requirements.6 unmodified lines- **`imwrite()`**: Saves the image to a specified location on your storage.```python# Example Usage of OpenCV Functionsimport cv2image = cv2.imread('path')# Reads an image - it always converts to 3D array which uses RGB color space12 unmodified linescv2.resize(image)# Resizes an image to a given dimension.""", unsafe_allow_html=True)st.subheader('**Image to Tabular Data**')st.markdown('''- Basically there are 5 steps to convert a iamge into tabular data- **Image** which is in 2D format converts into array uses color space(gray) using a image operation `imread()`.- **Array** which can be of any dimension so to make sure that every array having same dimension or (pixels) we use `resize()` operation- **Resize** which can be done in 2 ways which are `Compression` and `Expansion`- **`Compression`** - It removes pixels which has a disadvantage of loosing the information- **`Expansion`** - It adds rows or columns which has a disadvantage of adding noise- lots of information is lost --> type of features lost are **Spatial Features**- **Flatten** after resizing the image it converts every nd array to 1D array- **Concatenation** after flattening the array then concatenate every 1D array---> So that image is converted into tabular data- Images ------> Array ------> Resize ------> Flatten ------>Concatenation- using thse steps images are converted into tabular data''')6 unmodified lines<li>Gray Scale Color Space </li><li>RGB Color Space </li></ul>""", unsafe_allow_html=True)st.header('**Black & White Color Space**')st.markdown('''- It preserves only two colors which are **black(0) and white(1)**
pages/7_Unstructured_data.py+20-3