summaryrefslogtreecommitdiff
path: root/megapixels/commands/cv/face_roi.py
diff options
context:
space:
mode:
Diffstat (limited to 'megapixels/commands/cv/face_roi.py')
-rw-r--r--megapixels/commands/cv/face_roi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/megapixels/commands/cv/face_roi.py b/megapixels/commands/cv/face_roi.py
index d7248aee..a08566a8 100644
--- a/megapixels/commands/cv/face_roi.py
+++ b/megapixels/commands/cv/face_roi.py
@@ -115,7 +115,7 @@ def cli(ctx, opt_fp_in, opt_dir_media, opt_fp_out, opt_data_store, opt_dataset,
data = []
for df_record in tqdm(df_records.itertuples(), total=len(df_records)):
- fp_im = data_store.face_image(str(df_record.subdir), str(df_record.fn), str(df_record.ext))
+ fp_im = data_store.face(str(df_record.subdir), str(df_record.fn), str(df_record.ext))
im = cv.imread(fp_im)
# filter out color or grayscale iamges
@@ -149,10 +149,10 @@ def cli(ctx, opt_fp_in, opt_dir_media, opt_fp_out, opt_data_store, opt_dataset,
# debug display
if opt_display and len(bboxes):
- bbox_dim = bbox.to_dim(im.shape[:2][::-1]) # w,h
im_md = im_utils.resize(im, width=min(1200, opt_size[0]))
for bbox in bboxes:
bbox_dim = bbox.to_dim(im_md.shape[:2][::-1])
+ log.debug(f'bbox: {bbox_dim}')
cv.rectangle(im_md, bbox_dim.pt_tl, bbox_dim.pt_br, (0,255,0), 3)
cv.imshow('', im_md)
while True: