Commit Graph
4 Commits
Author SHA1 Message Date
Lieven Govaerts 054f63f6f9 Show the file list in natural sorted order ( f1->f8->f9->f10 instead of f1->f10->f8->f9 ).
* labelImg.py
  (natural_sort): New function, copied from S.O.:
  https://stackoverflow.com/questions/4836710/does-python-have-a-built-in-function-for-string-natural-sort?answertab=votes#tab-top
  (scanAllImages): Return the image file list in natural sorted order.
2019-01-26 22:21:14 -08:00
Lieven Govaerts ba12d85798 Avoid crash on "Edit Label" when there's no bounding boxes left.
The scenario is:
1. Open an image
2. Delete all bounding boxes
3. Select "Edit Label".

* labelImg.py
  (editLabel): Avoid crash zhen there's no currently selected item.
2019-01-26 22:15:03 -08:00
Lieven Govaerts 4bb6be6986 Ensure a vertex always stays within the boundaries of the canvas. 2019-01-03 22:48:13 -08:00
Lieven Govaerts 40b30f1cee labelImg.py/loadLabels: correct shapes that are out of image bounds. 2018-12-28 09:28:14 -08:00