LakshmiHarika commited on
Commit
b2874cb
·
verified ·
1 Parent(s): 10b3bc3

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +0 -25
pages/Data Collection.py CHANGED
@@ -315,31 +315,6 @@ elif st.session_state.current_page == "explore_images_video":
315
  </div>
316
  """, unsafe_allow_html=True)
317
 
318
- # Visualization for Grid-Like Structure
319
- st.markdown("<h4 style='color: #BB3385;'>Image as a Grid Structure</h4>", unsafe_allow_html=True)
320
- height, width = 6, 6
321
- grid = np.random.rand(height, width)
322
- fig, ax = plt.subplots()
323
- cax = ax.imshow(grid, cmap='viridis')
324
-
325
- # Annotate the grid with pixel labels
326
- for i in range(height):
327
- for j in range(width):
328
- ax.text(j, i, f'{grid[i, j]:.2f}', ha='center', va='center', color='white', fontsize=10)
329
-
330
- # Set axis labels and title
331
- ax.set_title("Image as a Grid-Like Structure", fontsize=12)
332
- ax.set_xlabel("Width (Pixels)", fontsize=10)
333
- ax.set_ylabel("Height (Pixels)", fontsize=10)
334
- ax.set_xticks(range(width))
335
- ax.set_yticks(range(height))
336
- ax.set_xticklabels([f'Col {j+1}' for j in range(width)])
337
- ax.set_yticklabels([f'Row {i+1}' for i in range(height)])
338
- ax.grid(color='white', linestyle='-', linewidth=1)
339
- fig.colorbar(cax, ax=ax, orientation='vertical', label='Pixel Value')
340
-
341
- st.pyplot(fig)
342
-
343
  # Go Back Button
344
  if st.button("Go Back"):
345
  navigate_to("main")
 
315
  </div>
316
  """, unsafe_allow_html=True)
317
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
  # Go Back Button
319
  if st.button("Go Back"):
320
  navigate_to("main")