Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files880 unmodified lines8818828838848858868878888898908918928938948958968978988999009019029034 unmodified lines908909910911912913914915916917918919920921922923924925926232 unmodified lines1159116011611162116311641165116611671168116911701171117211731174117511761177117811791180288 unmodified lines1469147014711472147314741475147614771478147914801481148214831484148514861487148814891490308 unmodified lines17991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821880 unmodified lines[OpenCV Documentation](https://docs.opencv.org/4.x/)""")if st.button("Open Jupyter Notebook"):try:# Fetch the HTML file from the Hugging Face linkurl = "https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/Jupyter_Notes/images_page_2.html"response = requests.get(url)# Check if the response is successfulif response.status_code == 200:notebook_html = response.text# Render the HTML content in Streamlitst.components.v1.html(notebook_html, height=1000, scrolling=True)else:st.error(f"Failed to load the notebook. HTTP Status: {response.status_code}")except Exception as e:st.error(f"An error occurred: {e}")st.write("""In the next section, we'll take a closer look at **image creation and manipulation using OpenCV**. We'll discuss:4 unmodified linesCurious to learn more?👇Click **Explore Image Creation and Manipulation** to continue your journey with OpenCV! 🚀""")col1, col2, col3 = st.columns(3)with col2:if st.button("📸 Images & Videos"):navigate_to("explore_images_video") # Main page: Images & Videoswith col1:if st.button("⬅️ Image Operations with OpenCV"):navigate_to("opencv_operations") # Previous page: Image Operations with OpenCVwith col3:if st.button("➡️ Explore Image Creation and Manipulation"):navigate_to("image_operations")elif st.session_state.current_page == "image_operations":232 unmodified linesStay tuned for an exciting exploration of video handling!""")col1, col2, col3 = st.columns(3)# Column 1 - Button to go to the Image operations pagewith col1:if st.button("⬅️ Image Operations with OpenCV"):navigate_to("opencv_operations")# Column 2 - Button for the main page (Images & Videos)with col2:if st.button("📸 Images & Videos"):navigate_to("explore_images_video") # Main page: Images & Videos# Column 3 - Button to go to the Videos pagewith col3:if st.button("➡️ Video Processing with OpenCV"):navigate_to("video_processing") # Videos pageelif st.session_state.current_page == "video_processing":288 unmodified linesGet ready to learn about powerful image transformation techniques!""")col1, col2, col3 = st.columns(3)# Column 1 - Button to go back to the Image Operations pagewith col1:if st.button("⬅️ Explore Image Creation and Manipulation"):navigate_to("image_operations") # Navigates to the Image Operations page# Column 2 - Button for the main page (Images & Videos)with col2:if st.button("📸 Images & Videos"):navigate_to("explore_images_video") # Main page: Images & Videos# Column 3 - Button to go to the Image Transformations pagewith col3:if st.button("➡️ Image Transformations with OpenCV"):navigate_to("image_transformations") # Next page: Image Transformationselif st.session_state.current_page == "image_transformations":# Content for Image Transformations Page308 unmodified linescv2.destroyAllWindows()""", language="python")col1, col2, col3 = st.columns(3)# Column 1 - Button to go back to the Image Operations pagewith col1:if st.button("⬅️ Video Processing with OpenCV"):navigate_to("video_processing")# Column 2 - Button for the main page (Images & Videos)with col2:if st.button("📸 Images & Videos"):navigate_to("explore_images_video") # Main page: Images & Videos# Column 3 - Button to go to the Image Transformations pagewith col3:if st.button("➡️ OpenCV Projects"):navigate_to("opencv_projects")if st.session_state.current_page == "opencv_projects":880 unmodified lines8818828838848858864 unmodified lines891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923232 unmodified lines115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188288 unmodified lines147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509308 unmodified lines181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850880 unmodified lines[OpenCV Documentation](https://docs.opencv.org/4.x/)""")st.write("""In the next section, we'll take a closer look at **image creation and manipulation using OpenCV**. We'll discuss:4 unmodified linesCurious to learn more?👇Click **Explore Image Creation and Manipulation** to continue your journey with OpenCV! 🚀""")# First row: Colab Notes and Main Pagecol1, col2 = st.columns(2)with col1:st.markdown("""<a href="https://colab.research.google.com/drive/1P9nT1HmOcCah5nTctxCm7hVdqqYPUkzn?usp=sharing" target="_blank"><button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">Colab Notes</button></a>""", unsafe_allow_html=True)with col2:if st.button("Main Page"):navigate_to("explore_images_video") # Main page: Images & Videos# Second row: Previous Page and Next Pagecol3, col4 = st.columns(2)with col3:if st.button("⬅️ Intro Page"):navigate_to("explore_images_video") # Previous page: Introduction to Images and Videoswith col4:if st.button("➡️ Next Page"):navigate_to("image_operations") # Next page: Explore Image Creation and Manipulationelif st.session_state.current_page == "image_operations":232 unmodified linesStay tuned for an exciting exploration of video handling!""")col1, col2 = st.columns(2)# First row: Colab Notes and Main Pagewith col1:st.markdown("""<a href="https://colab.research.google.com/drive/126XjnPWAmXB623-1KmerDT_fsJKH6Gc4?usp=sharing" target="_blank"><button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">Colab Notes</button></a>""", unsafe_allow_html=True)with col2:if st.button("Main Page"):navigate_to("explore_images_video") # Main page: Images & Videos# Second row: Previous Page and Next Pagecol3, col4 = st.columns(2)with col3:if st.button("⬅️ Prev Page"):navigate_to("opencv_operations") # Previous page: Image Operations with OpenCVwith col4:if st.button("➡️ Next Page"):navigate_to("video_processing") # Next page: Video Processing with OpenCVelif st.session_state.current_page == "video_processing":288 unmodified linesGet ready to learn about powerful image transformation techniques!""")col1, col2 = st.columns(2)# First row: Colab Notes and Main Pagewith col1:st.markdown("""<a href="https://colab.research.google.com/drive/1zzovaAr4NNJoJSR-lA9ApSyPguLKf3UB?usp=sharing" target="_blank"><button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">Colab Notes</button></a>""", unsafe_allow_html=True)with col2:if st.button("Main Page"):navigate_to("explore_images_video") # Main page: Images & Videos# Second row: Previous Page and Next Pagecol3, col4 = st.columns(2)with col3:if st.button("⬅️ Prev Page"):navigate_to("image_operations") # Previous page: Explore Image Creation and Manipulationwith col4:if st.button("➡️ Next Page"):navigate_to("image_transformations") # Next page: Image Transformations with OpenCVelif st.session_state.current_page == "image_transformations":# Content for Image Transformations Page308 unmodified linescv2.destroyAllWindows()""", language="python")col1, col2 = st.columns(2)# First row: Colab Notes and Main Pagewith col1:st.markdown("""<a href="https://colab.research.google.com/drive/19mQM-7VY0F0y9NyecrhbU5kyOY9j9oIk?usp=sharing" target="_blank"><button style="background-color: #4CAF50; color: white; padding: 10px; font-size: 16px; border: none; cursor: pointer;">Colab Notes</button></a>""", unsafe_allow_html=True)with col2:if st.button("Main Page"):navigate_to("explore_images_video") # Main page: Images & Videos# Second row: Previous Page and Next Pagecol3, col4 = st.columns(2)with col3:if st.button("⬅️ Prev Page"):navigate_to("video_processing") # Previous page: Video Processing with OpenCVwith col4:if st.button("➡️ Next Page"):navigate_to("opencv_projects") # Next page: OpenCV Projectsif st.session_state.current_page == "opencv_projects":
pages/Data Collection.py+82-53