Coordinates

#36
by krn11 - opened

I'm locally running Omniparser and unable to bring output coordinates, like it's available in the demo, any assistance in this would be appreciated

dino_labled_img, label_coordinates, parsed_content_list = get_som_labeled_img(image_save_path, yolo_model, BOX_TRESHOLD = box_threshold, output_coord_in_ratio=True, ocr_bbox=ocr_bbox,draw_bbox_config=draw_bbox_config, caption_model_processor=caption_model_processor, ocr_text=text,iou_threshold=iou_threshold, imgsz=imgsz)

label_coordinates
keep in mind the coord will be as 0 to 1 float if you specify output_coord_in_ratio=True

Sign up or log in to comment