Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- pages/Data Collection.py +85 -2
pages/Data Collection.py
CHANGED
|
@@ -906,8 +906,6 @@ def image_details_page():
|
|
| 906 |
st.image("https://huggingface.co/spaces/hari3485/DiveIntoML/resolve/main/Images/BGR2Gray.jpg")
|
| 907 |
|
| 908 |
|
| 909 |
-
if st.button("Go Back"):
|
| 910 |
-
st.experimental_set_query_params(page="Introduction")
|
| 911 |
|
| 912 |
if st.button("Back to Home"):
|
| 913 |
st.session_state['page'] = "home"
|
|
@@ -1238,9 +1236,94 @@ def video_details_page():
|
|
| 1238 |
cv2.destroyAllWindows()
|
| 1239 |
""",language = "python")
|
| 1240 |
|
|
|
|
|
|
|
| 1241 |
|
|
|
|
|
|
|
|
|
|
| 1242 |
|
|
|
|
| 1243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1244 |
if st.button("Back to Home"):
|
| 1245 |
st.session_state['page'] = "home"
|
| 1246 |
|
|
|
|
| 906 |
st.image("https://huggingface.co/spaces/hari3485/DiveIntoML/resolve/main/Images/BGR2Gray.jpg")
|
| 907 |
|
| 908 |
|
|
|
|
|
|
|
| 909 |
|
| 910 |
if st.button("Back to Home"):
|
| 911 |
st.session_state['page'] = "home"
|
|
|
|
| 1236 |
cv2.destroyAllWindows()
|
| 1237 |
""",language = "python")
|
| 1238 |
|
| 1239 |
+
if st.button("opencv_projects"):
|
| 1240 |
+
st.session_state['page'] = "OpenCV Projects"
|
| 1241 |
|
| 1242 |
+
st.markdown("""
|
| 1243 |
+
<h2 style="color: #BB3385;">OpenCV Projects</h2>
|
| 1244 |
+
""", unsafe_allow_html=True)
|
| 1245 |
|
| 1246 |
+
|
| 1247 |
|
| 1248 |
+
# Project 1: Converting an Image into Tabular Data
|
| 1249 |
+
st.markdown("""
|
| 1250 |
+
<h3 style="color: #5b2c6f;">Converting an Image into Tabular Data</h3>
|
| 1251 |
+
<p>
|
| 1252 |
+
This project explains how to convert an image into tabular data by extracting pixel values
|
| 1253 |
+
and representing them as structured rows and columns for analysis or machine learning tasks.
|
| 1254 |
+
</p>
|
| 1255 |
+
""", unsafe_allow_html=True)
|
| 1256 |
+
|
| 1257 |
+
|
| 1258 |
+
st.markdown("""
|
| 1259 |
+
<a href="https://github.com/hari3485/Open-Cv-Animation-project/blob/main/Extract%20Images%20to%20Tabular%20Data.ipynb"
|
| 1260 |
+
target="_blank" style="color: #2a52be;">
|
| 1261 |
+
Check out the project on GitHub
|
| 1262 |
+
</a>
|
| 1263 |
+
""", unsafe_allow_html=True)
|
| 1264 |
+
|
| 1265 |
+
|
| 1266 |
+
|
| 1267 |
+
# Project 2: Converting a Video into Tabular Data
|
| 1268 |
+
st.markdown("""
|
| 1269 |
+
<h3 style="color: #5b2c6f;">Converting a Video into Tabular Data</h3>
|
| 1270 |
+
<p>
|
| 1271 |
+
Learn to process videos frame by frame and extract pixel data from each frame.
|
| 1272 |
+
This project demonstrates how to represent video data in a structured tabular format.
|
| 1273 |
+
</p>
|
| 1274 |
+
""", unsafe_allow_html=True)
|
| 1275 |
+
|
| 1276 |
+
|
| 1277 |
+
st.markdown("""
|
| 1278 |
+
<a href="https://github.com/hari3485/Open-Cv-Animation-project/blob/main/Extract%20Videos%20to%20Tabular%20Data.ipynb"
|
| 1279 |
+
target="_blank" style="color: #2a52be;">
|
| 1280 |
+
Check out the project on GitHub
|
| 1281 |
+
</a>
|
| 1282 |
+
""", unsafe_allow_html=True)
|
| 1283 |
+
|
| 1284 |
+
|
| 1285 |
+
|
| 1286 |
+
# Project 3: Animation Project
|
| 1287 |
+
st.markdown("""
|
| 1288 |
+
<h3 style="color: #5b2c6f;">A Tale of Integrity: Finding Money, Choosing Honesty</h3>
|
| 1289 |
+
<p>
|
| 1290 |
+
This animation tells the story of a young boy who finds a bundle of money. Torn between keeping it or doing the right thing,
|
| 1291 |
+
he remembers his grandfather’s words: <em>"True character shines through in moments of choice."</em>
|
| 1292 |
+
He chooses integrity and returns the money to its rightful owner, reminding us all that honesty is priceless.
|
| 1293 |
+
</p>
|
| 1294 |
+
""", unsafe_allow_html=True)
|
| 1295 |
+
|
| 1296 |
+
|
| 1297 |
+
st.markdown("""
|
| 1298 |
+
<a href="https://github.com/hari3485/Open-Cv-Animation-project/blob/main/Animation%20Project.ipynb"
|
| 1299 |
+
target="_blank" style="color: #2a52be;">
|
| 1300 |
+
Check out the animation on GitHub
|
| 1301 |
+
</a>
|
| 1302 |
+
""", unsafe_allow_html=True)
|
| 1303 |
+
|
| 1304 |
+
|
| 1305 |
+
|
| 1306 |
+
# Project 4: GIF Project
|
| 1307 |
+
st.markdown("""
|
| 1308 |
+
<h3 style="color: #5b2c6f;">The Coding Journey: Debugging Woes Turned Joy (GIF)</h3>
|
| 1309 |
+
<p>
|
| 1310 |
+
This humorous and relatable GIF portrays every coder’s struggle: A boy sits at his desk exclaiming,
|
| 1311 |
+
<em>"My code is not working; I don’t know what to do!"</em> Moments later, he joyfully discovers,
|
| 1312 |
+
<em>"It’s working perfectly!"</em> – capturing the emotional highs and lows of debugging.
|
| 1313 |
+
</p>
|
| 1314 |
+
""", unsafe_allow_html=True)
|
| 1315 |
+
|
| 1316 |
+
|
| 1317 |
+
|
| 1318 |
+
st.markdown("""
|
| 1319 |
+
<a href="https://github.com/hari3485/Open-Cv-Animation-project/blob/main/Giffy.ipynb"
|
| 1320 |
+
target="_blank" style="color: #2a52be;">
|
| 1321 |
+
Check out the GIF on GitHub
|
| 1322 |
+
</a>
|
| 1323 |
+
""", unsafe_allow_html=True)
|
| 1324 |
+
|
| 1325 |
+
|
| 1326 |
+
|
| 1327 |
if st.button("Back to Home"):
|
| 1328 |
st.session_state['page'] = "home"
|
| 1329 |
|