import streamlit as st import pandas as pd import numpy as np # Custom CSS for styling custom_css = """ """ # Inject the CSS into the app st.markdown(custom_css, unsafe_allow_html=True) # What is an Image st.markdown("

What is IMAGE

", unsafe_allow_html=True) st.markdown( "

" "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." "

", unsafe_allow_html=True ) # Features of an Image st.markdown("

Features of IMAGE

", unsafe_allow_html=True) st.markdown( "

" "Pixels: Images are composed of small dots called pixels, each containing color data that together create the overall image." "

", unsafe_allow_html=True ) st.markdown( "

" "File Formats: Images can be stored in different formats, such as:
" "JPEG/JPG: Widely used for photographs and online images due to their efficient balance between quality and file size.
" "PNG: Preferred for high-quality visuals or images requiring transparency, such as logos.
" "GIF: Commonly utilized for basic animations or compact graphics." "

", unsafe_allow_html=True ) # Basic Operations in Image st.markdown("

Basic Operations in IMAGE

", unsafe_allow_html=True) st.markdown( "

" "For performing these basic operations, we use the cv2 module from the OpenCV library.
" "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." "

", unsafe_allow_html=True ) # Why cv2 is Used st.markdown("

Why cv2 is Used

", unsafe_allow_html=True) st.markdown( "

" "cv2 is used for various purposes, including:
" "1. Image Processing: Tasks like filtering, resizing, and format conversion.
" "2. Video Analysis: Techniques for video frame manipulation and analysis.
" "3. Feature Detection: Identifying features such as edges, corners, or objects in images.
" "4. Image Transformations: Rotations, translations, and other geometric operations." "

", unsafe_allow_html=True ) # Operations Used st.markdown("

Operations Used

", unsafe_allow_html=True) st.markdown("1. imread()") st.markdown("2. imshow()") st.markdown("3. imwrite()") st.markdown("4. cv2.waitKey()") st.markdown("5. destroyAllWindows()") # Add links to the GitHub repositories st.markdown( "

" "You can explore the code examples on GitHub:
" "IMAGE Creation
" "Basic Operations on Image" "

", unsafe_allow_html=True ) # Buttons for each stage st.markdown("### Affine Methods:") col1, col2,col3 = st.columns(3) with col1: if st.button("Translation&Affine"): st.switch_page("pages/Translation_Affine.py")