Skip to content

Commit

Permalink
- v1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
yatengLG committed Dec 16, 2024
1 parent c3a2911 commit 658d896
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 138 deletions.
130 changes: 0 additions & 130 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion ISAT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# @Author : LG

__author__ = 'yatengLG'
__version__ = '1.2.6'
__version__ = '1.2.7'
16 changes: 10 additions & 6 deletions ISAT/widgets/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,14 +1365,18 @@ def about(self):

def screen_shot(self, type='scene'):
# image_name = "ISAT-{}-{}.png".format(type, datetime.datetime.now().strftime("%Y%m%d%H%M%S"))
file_path = os.path.join(self.image_root, self.files_list[self.current_index])
image_name = os.path.basename(file_path)
image_name = os.path.splitext(image_name)[0] + '.png'
if self.current_index is not None and self.files_list:
current_image = self.files_list[self.current_index]
else:
current_image = 'no_image.jpg'
if type == 'scene':
print('no image saved.')
return
image_name = os.path.splitext(current_image)[0] + '.png'
screen_shot_dir = os.path.join(os.getcwd(), 'screen_shots')
if not os.path.exists(screen_shot_dir):
os.makedirs(screen_shot_dir, exist_ok=True)
os.makedirs(screen_shot_dir, exist_ok=True)
save_path = os.path.join(screen_shot_dir, image_name)
print(f'save path: {file_path}')
print(f'save path: {save_path}')

if type == 'scene':
try:
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include ISAT/checkpoints/mobile_sam.pt
include CHANGELOG.md
recursive-include ISAT/segment_any *.py
recursive-include ISAT/widgets *
recursive-include ISAT/ui *
Expand Down

0 comments on commit 658d896

Please sign in to comment.