Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- pages/Data Collection.py +39 -37
pages/Data Collection.py
CHANGED
|
@@ -1242,7 +1242,7 @@ def video_details_page():
|
|
| 1242 |
if st.button("opencv_projects"):
|
| 1243 |
st.session_state['page'] = "OpenCV Projects"
|
| 1244 |
|
| 1245 |
-
def
|
| 1246 |
|
| 1247 |
st.title("OpenCV Projects")
|
| 1248 |
|
|
@@ -1352,10 +1352,30 @@ def main_page():
|
|
| 1352 |
data_type = st.radio("Select Data Type:", ["Structured", "Semi-Structured", "Unstructured"])
|
| 1353 |
|
| 1354 |
if data_type == "Structured":
|
| 1355 |
-
|
| 1356 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1357 |
|
| 1358 |
elif data_type == "Semi-Structured":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1359 |
st.write("Semi-Structured Data includes formats like CSV, JSON, XML, and HTML.")
|
| 1360 |
|
| 1361 |
if st.button("CSV"):
|
|
@@ -1368,6 +1388,18 @@ def main_page():
|
|
| 1368 |
st.session_state['page'] = "html"
|
| 1369 |
|
| 1370 |
elif data_type == "Unstructured":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1371 |
st.write("Unstructured Data includes formats like Images and Videos.")
|
| 1372 |
|
| 1373 |
if st.button("Image"):
|
|
@@ -1375,41 +1407,8 @@ def main_page():
|
|
| 1375 |
if st.button("Video"):
|
| 1376 |
st.session_state['page'] = "video"
|
| 1377 |
|
| 1378 |
-
# Structured Data
|
| 1379 |
-
st.subheader("1️⃣ Structured Data 🗂️")
|
| 1380 |
-
st.write("""
|
| 1381 |
-
This type of data is well-organized, like in a table with rows and columns. It's easy to store and analyze.
|
| 1382 |
-
- **Examples:**
|
| 1383 |
-
- Names, phone numbers, and addresses in a spreadsheet.
|
| 1384 |
-
- Sales records in a database.
|
| 1385 |
-
""")
|
| 1386 |
-
st.write("**💡 Simple Story:** Think of a grocery store where every item has its price, category, and stock neatly listed on a computer.")
|
| 1387 |
|
| 1388 |
-
|
| 1389 |
-
st.subheader("2️⃣ Semi-Structured Data 📜")
|
| 1390 |
-
st.write("""
|
| 1391 |
-
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.
|
| 1392 |
-
- **Examples:**
|
| 1393 |
-
- Emails (with subject, sender, and message).
|
| 1394 |
-
- JSON or XML files used in apps and websites.
|
| 1395 |
-
""")
|
| 1396 |
-
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.")
|
| 1397 |
-
|
| 1398 |
-
# Unstructured Data
|
| 1399 |
-
st.subheader("3️⃣ Unstructured Data 📷")
|
| 1400 |
-
st.write("""
|
| 1401 |
-
This is data without any specific organization. It’s harder to analyze directly.
|
| 1402 |
-
- **Examples:**
|
| 1403 |
-
- Photos and videos.
|
| 1404 |
-
- Social media posts or text messages.
|
| 1405 |
-
""")
|
| 1406 |
-
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.")
|
| 1407 |
-
|
| 1408 |
-
# Conclusion
|
| 1409 |
-
st.header("🔍 Conclusion")
|
| 1410 |
-
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.")
|
| 1411 |
-
|
| 1412 |
-
|
| 1413 |
# Initialize session state
|
| 1414 |
if 'page' not in st.session_state:
|
| 1415 |
st.session_state['page'] = "home"
|
|
@@ -1431,3 +1430,6 @@ elif st.session_state['page'] == "image":
|
|
| 1431 |
image_details_page()
|
| 1432 |
elif st.session_state['page'] == "video":
|
| 1433 |
video_details_page()
|
|
|
|
|
|
|
|
|
|
|
|
| 1242 |
if st.button("opencv_projects"):
|
| 1243 |
st.session_state['page'] = "OpenCV Projects"
|
| 1244 |
|
| 1245 |
+
def opencv_projects_page():
|
| 1246 |
|
| 1247 |
st.title("OpenCV Projects")
|
| 1248 |
|
|
|
|
| 1352 |
data_type = st.radio("Select Data Type:", ["Structured", "Semi-Structured", "Unstructured"])
|
| 1353 |
|
| 1354 |
if data_type == "Structured":
|
| 1355 |
+
# Structured Data
|
| 1356 |
+
st.subheader("1️⃣ Structured Data 🗂️")
|
| 1357 |
+
st.write("""
|
| 1358 |
+
This type of data is well-organized, like in a table with rows and columns. It's easy to store and analyze.
|
| 1359 |
+
- **Examples:**
|
| 1360 |
+
- Names, phone numbers, and addresses in a spreadsheet.
|
| 1361 |
+
- Sales records in a database.
|
| 1362 |
+
""")
|
| 1363 |
+
st.write("**💡 Simple Story:** Think of a grocery store where every item has its price, category, and stock neatly listed on a computer.")
|
| 1364 |
+
|
| 1365 |
+
if st.button("Excel"):
|
| 1366 |
+
st.session_state['page'] = "excel"
|
| 1367 |
|
| 1368 |
elif data_type == "Semi-Structured":
|
| 1369 |
+
# Semi-Structured Data
|
| 1370 |
+
st.subheader("2️⃣ Semi-Structured Data 📜")
|
| 1371 |
+
st.write("""
|
| 1372 |
+
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.
|
| 1373 |
+
- **Examples:**
|
| 1374 |
+
- Emails (with subject, sender, and message).
|
| 1375 |
+
- JSON or XML files used in apps and websites.
|
| 1376 |
+
""")
|
| 1377 |
+
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.")
|
| 1378 |
+
|
| 1379 |
st.write("Semi-Structured Data includes formats like CSV, JSON, XML, and HTML.")
|
| 1380 |
|
| 1381 |
if st.button("CSV"):
|
|
|
|
| 1388 |
st.session_state['page'] = "html"
|
| 1389 |
|
| 1390 |
elif data_type == "Unstructured":
|
| 1391 |
+
|
| 1392 |
+
# Unstructured Data
|
| 1393 |
+
st.subheader("3️⃣ Unstructured Data 📷")
|
| 1394 |
+
st.write("""
|
| 1395 |
+
This is data without any specific organization. It’s harder to analyze directly.
|
| 1396 |
+
- **Examples:**
|
| 1397 |
+
- Photos and videos.
|
| 1398 |
+
- Social media posts or text messages.
|
| 1399 |
+
""")
|
| 1400 |
+
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.")
|
| 1401 |
+
|
| 1402 |
+
|
| 1403 |
st.write("Unstructured Data includes formats like Images and Videos.")
|
| 1404 |
|
| 1405 |
if st.button("Image"):
|
|
|
|
| 1407 |
if st.button("Video"):
|
| 1408 |
st.session_state['page'] = "video"
|
| 1409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1410 |
|
| 1411 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1412 |
# Initialize session state
|
| 1413 |
if 'page' not in st.session_state:
|
| 1414 |
st.session_state['page'] = "home"
|
|
|
|
| 1430 |
image_details_page()
|
| 1431 |
elif st.session_state['page'] == "video":
|
| 1432 |
video_details_page()
|
| 1433 |
+
elif st.session_state['page'] == "OpenCV Projects":
|
| 1434 |
+
opencv_projects_page()
|
| 1435 |
+
|