Skip to content

Commit

Permalink
minor bug fix infer_roi
Browse files Browse the repository at this point in the history
  • Loading branch information
petroslk committed Sep 25, 2024
1 parent 33cebc9 commit d86250c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoverfast/utils_roi.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def region_feature_roi(region,output_mask,dist, marker, opening,poly_simplify_to
for i in range(len(temp)):
poly = temp[i]
cv2.polylines(img, [poly],-1,color_rgb,width)
cv2.fillPoly(label,[poly],len(features)+i)
cv2.fillPoly(label,[poly],len(features)+i+1)
features += [save_poly_dict(poly.astype(float)) for poly in temp]
#save to Json
with gzip.open(os.path.join(outdir,'json', sname + ".json.gz"), 'wt', encoding="ascii") as zipfile:
Expand Down

0 comments on commit d86250c

Please sign in to comment.