146 Commits

Author SHA1 Message Date
tzutalin
ec23bb42ce Update unit test to fix error and fix icon issue 2021-04-10 08:34:55 -07:00
Denis
62585531ca
Fix incorrect path handling (#731)
* Fix incorrect save dir path handling for ML format.

Save dir path was split by incorrect os.dependent separator '/'
which was the cause of labels being saved to parent folder.

* Implement path normalization for command arguments.

Renamed 'predefined_classes_file' parameter to 'class_file'.
2021-04-07 22:01:55 -07:00
Cerno_b
c35f09747a
Pep 8 (#720)
* rename local variables in main file

* additional renaming of functions and variables

* Rename main file functions

* Rename functions and variables in canvas.py

* Rename functions and locals for remaining files

* Rename non-Qt derived class' members

* Rename members of Qt-derived classes

* Fix paint label issue
2021-03-14 16:56:14 -07:00
LiXiaolin
eb4857f834
Translate texts on menu bar (#695) 2021-01-09 09:30:04 -08:00
chenghsiung
5d6557f994
Adaptively adjust label size (#678)
* Adjust label font size based on image size

* Adjust the upper boundary of the painted label

* Set font size based on both image width & height
2021-01-01 11:54:27 -08:00
tzutalin
e1c67fc0c3 Bump to 1.8.4 2020-11-14 23:17:25 -08:00
tzutalin
a86093ca60 Updated README 2020-11-14 22:51:44 -08:00
tzutalin
e13d154ad8 Fixed Autosave did not work as it does not use a proper file path separator 2020-11-14 09:05:33 -08:00
enicck
31463497c8
Adds create-ml format support (#651)
* adds createMl reader & writer class

* adds getFormatMeta function to support more than two save_format

* adds CreateML read & write support

* adds format CreateML icon

* fixes negative height/width

* removes type hints

* fixes coordinate calculation

* adds unit test

* removes typehint
2020-10-02 06:56:07 -07:00
tzutalin
949e46cec4 change delete image hotkey 2020-09-26 11:15:30 -07:00
EuihyunLee
058d7a7e80
Read via QImageReader (#650)
* Now read via QImageReader

* Remove comment-out unused lines
2020-09-26 11:03:04 -07:00
tzutalin
08db03a36d rename functions 2020-09-12 10:59:57 -07:00
Crystal Silva Campos
12dadc67cd
Add ctrl+v hotkey to be able copy the bounding boxes from the previous image to the current (#627)
* Add previous bounding boxes code

* Create method to avoid repeated code

* Fix text in the action copyprevbounding

* Add description for different languages
2020-09-12 10:49:21 -07:00
Chris Rapson (AT)
39b0d68f09 Improve MessageBox when clicking Next/Prev without saving image 2020-09-12 00:15:20 -07:00
tzutalin
0e905160fe Changing format enables save button 2020-08-02 00:18:34 -07:00
tzutalin
f387c5932b use enum for label file formats 2020-08-02 00:14:18 -07:00
Laszlo Treszkai
196bd46828 Save used labeling format in settings 2020-08-01 23:44:36 -07:00
Laszlo Treszkai
b21b48e640 Parse command-line arguments using argparse 2020-08-01 23:44:36 -07:00
tzutalin
60ae6067ea Update zh translation and format code a little bit 2020-07-01 18:18:19 -07:00
Kirill Kalashnikov
9fca0b5e92 added delete image button 2020-07-01 17:16:18 -07:00
Hakan Karaoguz
e51bfce9a7 Added combobox to the main view for displaying unique labels individually 2020-01-10 08:51:12 -08:00
Eetu Silvennoinen
731735f187 Update labelImg.py
Fixed a comment typo.
2019-10-28 18:23:14 -07:00
Eduard Tamsa
157a4173f3 Add Silent option for openDirDialog
Add Silent option for openDirDialog to facilitate opening a directory at start up
    if the filePath provided is a directory without opening the file selector UI.
2019-10-04 20:30:42 -07:00
tzutalin
5b9d2bf9b6 Update setup.py 2019-05-25 14:29:16 -07:00
xdzhou
551fc7e00d Fix bug: An index error after select a directory when open a new file. 2019-05-22 15:02:20 -07:00
tzutalin
ca28daddec Rename lib.py to utils.py and add test cases for natural sort 2019-01-26 23:16:21 -08:00
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
tzutalin
6db1dd500d FIx issue#403 2018-12-02 20:27:16 -08:00
tzutalin
eaac031404 Move icons to resource folder, fix the unicode issue, support zh-tw lang 2018-12-01 00:45:50 -08:00
Maxim Smirnov
13a700ad53 Fix program start when re-started without the second monitor.
When labelImg was closed on the second monitor, and later opened when it is disabled, it is impossible to see the app window.
2018-11-26 21:58:19 -08:00
Antoine Broyelle
4e278bb511 feature: draw square bounding boxes 2018-10-19 23:32:18 -07:00
vdalv
4f84f68b96 Fix issue #287 and a typo 2018-06-23 01:14:30 -07:00
tzutalin
8b0f76f6c0 Fix unicode string issues 2018-05-18 23:34:59 -07:00
vdalv
e7a7b64f7e Add option to enable/disable label painting 2018-05-18 22:51:57 -07:00
vdalv
219e50dbfc Fix verify image issue 248 2018-05-18 22:51:32 -07:00
vdalv
508a4c8b37 Fix save dialog issue - #300 2018-05-18 22:51:00 -07:00
vdalv
fef4e6b057 Fix file save issue - #293 2018-05-18 22:50:45 -07:00
sebasrivera96
542b87fd0a Update saveLevels function to add an extension just when needed 2018-05-18 22:48:03 -07:00
Sebastian Rivera
96c723c139 Remove lines on saveLabels function to save correctly XML files 2018-05-18 22:48:03 -07:00
Sebastian Rivera
515a3f6606 Modify labelImg.py to solve an error when naming the .xml file
A line was commented out because there was an error. When a box was drawn
around an object and then saved, the file had a termination
".xml.xml" instead of just ".xml".
2018-05-18 22:48:03 -07:00
jeffrey
90bd8fdbd8 support saveDir argument 2018-04-15 05:42:14 +08:00
Haozhe Xie
bc71e12a9a Fix a bug that the application crashes when the browser opens. 2018-04-15 05:40:01 +08:00
蔡俊杰
9e8185077b fix missing command line arguments 2018-03-31 11:24:21 -07:00
darrenl
6c774267ec
Merge pull request #249 from cjermain/supported_extensions
Allowing all supported extensions (TIFF in Qt 4.8, along with PPM, PBM, and PGM)
2018-03-10 10:02:01 -08:00
Colin Jermain
8e892c4f25 Allowing all supported extensions to be read in the directory 2018-03-08 14:47:19 -05:00
Wang Yinghao
852c63d04d Change Label Text 2018-03-02 09:44:42 -06:00
Wang Yinghao
180d25a2d7 bugfix, toggle button 2018-03-01 23:05:57 -06:00