Functions for marking up label images using a trained model
Setup environment¶
Imports¶
Define directories¶
img_path = Path('nbs_test_data')
mrk_path = Path('nbs_test_data/markup')
mrk_path.mkdir(parents=True, exist_ok=True)
fnames = sorted(get_image_files(img_path))
fn = fnames[1]
fn
fnames
utilities¶
print("Class Labels")
CLASS_LABELS
Test find_prediction_blobs( cls, img, min_conf=0.1, min_area=100)¶
find_prediction_blobs( cls, img, min_conf=0.1, min_area=100)