Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/DeepBee/software/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,10 @@ def next_image(direction, len_images, index):
if direction == 'F':
if index + 1 >= len_images:
return 0
else:
return index + 1
else:
if index - 1 <= -1:
return len_images - 1
else:
return index - 1
return index + 1
if index - 1 <= -1:
return len_images - 1
return index - 1


def change_mode(mode):
Expand Down Expand Up @@ -271,7 +268,7 @@ def process_entries(img_det):
if k != last_key:
if k == 27: # Esc close stop
return False
elif k in CLASSES_KEY: # Classes
if k in CLASSES_KEY: # Classes
OPTION = k
change_mode('LABELING_MODE')
elif k == 32: # Space Moving image
Expand Down