Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files1241 unmodified lines1242124312441245124612471248103 unmodified lines13521353135413551356135713581359136013616 unmodified lines1368136913701371137213731 unmodified line1375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141515 unmodified lines1431143214331241 unmodified linesif st.button("opencv_projects"):st.session_state['page'] = "OpenCV Projects"def opencv_projects():st.title("OpenCV Projects")103 unmodified linesdata_type = st.radio("Select Data Type:", ["Structured", "Semi-Structured", "Unstructured"])if data_type == "Structured":if st.button("Excel"):st.session_state['page'] = "excel"elif data_type == "Semi-Structured":st.write("Semi-Structured Data includes formats like CSV, JSON, XML, and HTML.")if st.button("CSV"):6 unmodified linesst.session_state['page'] = "html"elif data_type == "Unstructured":st.write("Unstructured Data includes formats like Images and Videos.")if st.button("Image"):1 unmodified lineif st.button("Video"):st.session_state['page'] = "video"# Structured Datast.subheader("1️⃣ Structured Data 🗂️")st.write("""This type of data is well-organized, like in a table with rows and columns. It's easy to store and analyze.- **Examples:**- Names, phone numbers, and addresses in a spreadsheet.- Sales records in a database.""")st.write("**💡 Simple Story:** Think of a grocery store where every item has its price, category, and stock neatly listed on a computer.")# Semi-Structured Datast.subheader("2️⃣ Semi-Structured Data 📜")st.write("""This type of data is somewhat organized but not as strict as tables. It has a format but doesn’t fit perfectly into rows and columns.- **Examples:**- Emails (with subject, sender, and message).- JSON or XML files used in apps and websites.""")st.write("**💡 Simple Story:** Imagine writing a letter that has a date, sender’s name, and the main message. It’s structured in parts but not as fixed as a table.")# Unstructured Datast.subheader("3️⃣ Unstructured Data 📷")st.write("""This is data without any specific organization. It’s harder to analyze directly.- **Examples:**- Photos and videos.- Social media posts or text messages.""")st.write("**💡 Simple Story:** Think of a messy drawer with random papers, photos, and tools. It’s useful, but you need to sort it out to find what you need.")# Conclusionst.header("🔍 Conclusion")st.write("Understanding the types of data helps us decide how to use it. Structured data is like a neat file cabinet, semi-structured is like a stack of papers with labels, and unstructured is like a box of random items.")# Initialize session stateif 'page' not in st.session_state:st.session_state['page'] = "home"15 unmodified linesimage_details_page()elif st.session_state['page'] == "video":video_details_page()1241 unmodified lines1242124312441245124612471248103 unmodified lines1352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013816 unmodified lines1388138913901391139213931394139513961397139813991400140114021403140414051 unmodified line1407140814091410141114121413141415 unmodified lines1430143114321433143414351241 unmodified linesif st.button("opencv_projects"):st.session_state['page'] = "OpenCV Projects"def opencv_projects_page():st.title("OpenCV Projects")103 unmodified linesdata_type = st.radio("Select Data Type:", ["Structured", "Semi-Structured", "Unstructured"])if data_type == "Structured":# Structured Datast.subheader("1️⃣ Structured Data 🗂️")st.write("""This type of data is well-organized, like in a table with rows and columns. It's easy to store and analyze.- **Examples:**- Names, phone numbers, and addresses in a spreadsheet.- Sales records in a database.""")st.write("**💡 Simple Story:** Think of a grocery store where every item has its price, category, and stock neatly listed on a computer.")if st.button("Excel"):st.session_state['page'] = "excel"elif data_type == "Semi-Structured":# Semi-Structured Datast.subheader("2️⃣ Semi-Structured Data 📜")st.write("""This type of data is somewhat organized but not as strict as tables. It has a format but doesn’t fit perfectly into rows and columns.- **Examples:**- Emails (with subject, sender, and message).- JSON or XML files used in apps and websites.""")st.write("**💡 Simple Story:** Imagine writing a letter that has a date, sender’s name, and the main message. It’s structured in parts but not as fixed as a table.")st.write("Semi-Structured Data includes formats like CSV, JSON, XML, and HTML.")if st.button("CSV"):6 unmodified linesst.session_state['page'] = "html"elif data_type == "Unstructured":# Unstructured Datast.subheader("3️⃣ Unstructured Data 📷")st.write("""This is data without any specific organization. It’s harder to analyze directly.- **Examples:**- Photos and videos.- Social media posts or text messages.""")st.write("**💡 Simple Story:** Think of a messy drawer with random papers, photos, and tools. It’s useful, but you need to sort it out to find what you need.")st.write("Unstructured Data includes formats like Images and Videos.")if st.button("Image"):1 unmodified lineif st.button("Video"):st.session_state['page'] = "video"# Initialize session stateif 'page' not in st.session_state:st.session_state['page'] = "home"15 unmodified linesimage_details_page()elif st.session_state['page'] == "video":video_details_page()elif st.session_state['page'] == "OpenCV Projects":opencv_projects_page()
pages/Data Collection.py+39-37