app.py
def add_marker_analyze(selected_polygon):
    """Generate masks, if not generated yet, when image is selected"""
    if selected_polygon == "None":
        return [[0, 0]]
    else:
        top_right_coord = get_corner_coord(
            selected_polygon, vertical="top", horizontal="right", config=config
        )
        return [top_right_coord]
Generate masks, if not generated yet, when image is selected
Generate masks, if not generated yet, when image is selected
Generate masks if not generated yet when image is selected
def add_marker_analyze(selected_polygon):
    if selected_polygon == "None":
        return [[0, 0]]
    else:
        top_right_coord = get_corner_coord(
            selected_polygon, vertical="top", horizontal="right", config=config
        )
        return [top_right_coord]
def add_marker_analyze ( selected_polygon ) : if selected_polygon == "None" : return [ [ 0 , 0 ] ] else : top_right_coord = get_corner_coord ( selected_polygon , vertical = "top" , horizontal = "right" , config = config ) return [ top_right_coord ]
Generate masks, if not generated yet, when image is selected
Generate masks if not generated yet when image is selected
"""Generate masks, if not generated yet, when image is selected"""
selected_polygon