|
|
|
|
|
|
image_draw.text( |
|
|
|
(box[0], box[1]), class_name, font=font, fill=colors[class_name] |
|
|
|
) |
|
|
|
st.subheader(header) |
|
|
|
st.markdown(description) |
|
|
|
st.image(image, use_column_width=True) |
|
|
|
|
|
|
|
#st.subheader(header) |
|
|
|
#st.markdown(description) |
|
|
|
#st.image(image, use_column_width=True) |
|
|
|
return image |
|
|
|
|
|
|
|
def draw_image_with_semantic_segmentation( |
|
|
|
image: Image, |
|
|
|
|
|
|
image = draw_image_with_semantic_segmentation( |
|
|
|
image, dataset.metadata.image_size[0], dataset.metadata.image_size[1], segmentation, "Semantic Segmentation Preview", "" |
|
|
|
) |
|
|
|
draw_image_with_boxes( |
|
|
|
image = draw_image_with_boxes( |
|
|
|
st.image(image, use_column_width=True) |
|
|
|
|
|
|
|
|
|
|
|
def preview_app(args): |
|
|
|