Skip to content

Commit a962fc7

Browse files
authored
Fixed image source bug for show_anns (#131)
1 parent b189357 commit a962fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

samgeo/samgeo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,11 @@ def set_image(self, image, image_format="RGB"):
409409
if not os.path.exists(image):
410410
raise ValueError(f"Input path {image} does not exist.")
411411

412-
self.image = image
412+
self.source = image
413413

414414
image = cv2.imread(image)
415415
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
416+
self.image = image
416417
elif isinstance(image, np.ndarray):
417418
pass
418419
else:

0 commit comments

Comments
 (0)