hbb2obb-view¶
Shows HBB and OBB annotations over their images, interactively or as image files. Guide: View annotations.
usage: hbb2obb-view [-h] [--version] [--obb_dir OBB_DIR] [--hbb_dir HBB_DIR]
[--polygon_dir POLYGON_DIR] [--compare COMPARE] [--map_path MAP_PATH]
[--obb_format {yolo,dota,voc,coco,labelme}]
[--hbb_format {yolo,dota,voc,coco,labelme}] [--frame FRAME]
[--out_dir OUT_DIR] [--crops] [--indices INDICES [INDICES ...]] [--hide_hbb]
[--hide_class_labels] [--show_confidence] [--confidence_dir CONFIDENCE_DIR]
[--window WINDOW]
img_source
View HBB and OBB annotations over their images: pan, zoom, and step through frames
positional arguments:
img_source Path to an image or directory containing images
options:
-h, --help show this help message and exit
--version, -V show program's version number and exit
--obb_dir OBB_DIR, -od OBB_DIR
Directory of OBB annotations (default: img_source/../labels_obb)
--hbb_dir HBB_DIR, -hd HBB_DIR
Directory of HBB annotations (default: img_source/../labels_hbb)
--polygon_dir POLYGON_DIR, -pd POLYGON_DIR
Directory of segmentation polygons (default: img_source/../labels_polygon)
--compare COMPARE, -c COMPARE
A second OBB set to overlay in blue, for comparing predictions against
ground truth
--map_path MAP_PATH, -mp MAP_PATH
Path to a label map YAML mapping class IDs to names
--obb_format {yolo,dota,voc,coco,labelme}
OBB format (default: detected)
--hbb_format {yolo,dota,voc,coco,labelme}
HBB format (default: detected)
--frame FRAME, -f FRAME
Frame stem to open first, or the only one to write
--out_dir OUT_DIR, -o OUT_DIR
Write annotated images here instead of opening a window
--crops Write a contact sheet of the individual objects rather than whole frames
--indices INDICES [INDICES ...]
With --crops, restrict the sheet to these box indices, for reviewing
particular objects
--hide_hbb Do not draw the horizontal boxes
--hide_class_labels Do not draw class labels
--show_confidence Color the OBBs by confidence and print the score
--confidence_dir CONFIDENCE_DIR, -cd CONFIDENCE_DIR
Side-car directory of confidence scores, for labels that carry no
confidence column. Read whether or not --show_confidence is given, so that
the c key has something to show (default: img_source/../labels_confidence)
--window WINDOW Window size as WxH (default: 1600x900)
Keys: q/Esc quit, n/p or arrows change frame, wheel or +/- zoom, f fit, 1 100%, o OBBs, h HBBs, l
labels, d difficult, c confidence, g polygons, t/y read the OBBs/HBBs from the next format the set
ships, x comparison, s save. Drag with the left mouse button to pan.