Commit Graph

424 Commits

Author SHA1 Message Date
tzutalin 0f111e643a Change locale.getlocale() to locale.getdefaultlocale() 2022-03-07 17:54:53 -08:00
tzutalin dd6781656c update translations for zh-CN 2022-03-07 16:55:26 -08:00
tzutalin d685e50269 fix missing imports 2022-02-22 22:23:10 -08:00
Paul Anton Letnes ca3a3accdd remove unused import statements (#845)
To reduce clutter, all unused imports were removed. On the affected
files, imports were also reordered to be PEP8 sorted.
2022-02-17 11:18:21 -08:00
Aditya Kumar 276f40f5e5 Modified the default label text box into a drop down (#824)
* Modified the default label text box into a drop down

* Unchecked the box at startup

* Removed commented code

* Removed unnecessary update method for the combobox

* Changed naming style for class
2022-01-26 08:18:13 -08:00
Paul Anton Letnes c35efbd480 convert floating point values of zoom level to int (#840)
In some cases, arithmetic results (in particular from division) on zoom
levels return floats; however, the PyQt API requires int values to
function correctly. Therefore, explicit conversion to int or integer
division has been added for these cases.

A behavior bug causing sudden crashes was fixed. When a rectangular box
is dragged with the right mouse button, but the left mouse button is
touched prior to release of the right mouse button, the  program
crashed. The root cause seems to be that this deselects the dragged
object so it is no longer available (i.e. `self.canvas.selected_shape is
None`). The new behavior does nothing / cancels the operation if this
occurs.

Added a shortcut for switching file format (CTRL+Y) since I often use
this functionality.
2022-01-26 08:17:27 -08:00
Sam.An 98e88371ad Fix opening next image error (#835)
* Fix draw annotations error

* Fix opening next image
2021-12-28 09:10:38 -08:00
Sam.An 5c38b6bcdd Fix draw annotations error (#833) 2021-12-27 19:05:21 -08:00
dependabot[bot] b1e13347dd Bump lxml from 4.6.3 to 4.6.5 in /requirements (#830)
Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.6.5.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.3...lxml-4.6.5)

---
updated-dependencies:
- dependency-name: lxml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-26 21:04:23 -08:00
Stefan Breunig 9f2765e97b fix h_vertex being kept after deleting shape, causing a crash if used (#832)
Steps to reproduce this particular issue:

1. draw a box
2. select the box
3. hover over one of the corners as if you want to resize the box (no click needed)
4. press DEL to delete the box
5. left click on the canvas

Note there are two more destructive operations on the canvas' `shape` in
`undo_last_line` and `reset_all_lines`, but former is dead code and latter
I don't know how to trigger. Thus I can't be sure un-highlighting will not
lead to visual glitches.

There are other potential fixes, e.g. checking in `selected_vertex`. I can
rework the patch, but then again, the fix is so straight forward that telling
me is probably more effort than just rewriting it.

See #750
See #605
2021-12-26 20:48:39 -08:00
HLiang 39ecb789a7 correct initial img_count (#817)
fixes issue https://github.com/tzutalin/labelImg/issues/816
2021-11-19 21:43:57 -08:00
Thinh Phan d4030a71af Update README.rst (#813)
Add "Annotation visualization"
2021-11-18 11:53:18 -08:00
Thinh Phan aa529c3d38 Update requirements-linux-python3.txt (#812)
Update version of pyqt5
2021-11-18 09:04:44 -08:00
Naelson Douglas C. Oliveira e9dbbd80bc removed a default mutable argument pitfall (#809) 2021-10-31 08:21:18 -07:00
tzutalin 1ab8241d0e bump version to 1.8.6 2021-10-11 13:15:19 -07:00
Tiger Nie 3f53dce960 display bbox width and height while resizing, moving and hovering over (#798)
shape.
2021-10-11 13:04:40 -07:00
tzutalin 7457d58249 update instruction to install with pipenv 2021-10-11 13:04:03 -07:00
Enzo Di Tizio cc8fd5a703 Changing installation methods order (#796)
Just to put the easiest one first.
2021-10-03 11:25:56 -07:00
ngc92 58406b578a adds a utility function to hide a QT5/QT4 discrepancy (#765)
Co-authored-by: erik <ersre>
2021-07-25 09:09:01 -07:00
Keito Tobichi c5971bffab Japanese Translation Fix. (#760)
* fix.

* small fix.

* translation fix.

* shortcut fix.
2021-07-17 20:45:26 -07:00
Keito Tobichi 250de4bef8 Add Locale: Japanese (#756)
* [wip]japanese translation file.

* [wip]fixed japanese translation.

* create README.jp.rst

* add locale ja-JP.

* Removed Locale Data.
2021-06-27 14:42:27 -07:00
darrenl d3e502439c Update no-response.yml 2021-06-06 07:50:01 -07:00
tzutalin ff681f7054 Remove unused code and add short cut link 2021-05-11 09:39:28 -07:00
WEN Hao 91c23d0a9d Use webbrowser instead of get_available_screencast_viewer (#745)
* improve opening tutorial

* improve show_tutorial_dialog

* improve show_tutorial_dialog

* remove not implemented

* remove unncessary package QtWebEngineWidgets

* remove commented import of QtWebEngineWidgets
2021-05-11 09:20:54 -07:00
tzutalin c4e8cd8390 Add .github/no-response.yml 2021-05-01 08:14:54 -07:00
Denis 4bf5c4528c Fix deletion of image caused selection of the first image (#742)
Also removed the call to self.import_dir_images method that reloaded all
of the images in directory.
2021-04-28 07:22:14 -07:00
Denis 6b5c3c634b Implement image counter. (#734)
* Introduced two new attributes of MainWindow:
  cur_img_idx - Index of current image in m_img_list.
  img_count   - Length of m_img_list.

* Implement counter_str method to get string representation of counter.

* Appended counter to window title.

* Based image switching logic on counter instead of local variables.

* Removed useless condition.
  current_index = self.m_img_list.index(ustr(item.text()))
  if current_index < len(self.m_img_list):
  list.index will raise ValueError if item doesn't exist.
2021-04-26 22:18:56 -07:00
tzutalin 0c09c7c5d1 Bump to 1.8.5 2021-04-11 22:36:08 -07:00
tzutalin bf1da53b21 Update zh readme 2021-04-11 22:17:05 -07:00
tzutalin 61d19bd563 add zh readme 2021-04-11 22:13:07 -07:00
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
Denis 0573a39ec3 Fix rounding issue that caused 1px box shift for YOLO format. (#730) 2021-04-06 16:38:48 -07:00
dependabot[bot] 3425fefd8d Bump lxml from 4.6.2 to 4.6.3 in /requirements (#728)
Bumps [lxml](https://github.com/lxml/lxml) from 4.6.2 to 4.6.3.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.2...lxml-4.6.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 07:51:40 -07:00
Thijs van den Berg 34ed6a3a2a Change encoding. Fix for #676 (#722)
First read the file in binary mode. Then, convert to utf-8. Fix for https://github.com/tzutalin/labelImg/issues/676
2021-04-01 07:50:00 -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
Christian Clauss ef05452f7c Travis CI: Trusty, Python 3.5, and sudo on Travis are all end of life (#719)
* Travis CI: Trusty, Python 3.5, and sudo on Travis are all end of life

* Matrix —> jobs

* python: does no work on macOS
2021-03-08 16:28:31 -08:00
tzutalin 4993dcb9e9 Update README 2021-02-28 11:13:14 -08:00
tzutalin d8fdd478ef move convert dir to tools dir 2021-02-28 11:06:15 -08:00
Tomas SP bfda006576 Mac os pipenv installation documentation bug fix (#711)
Fix mac os pipenv installation documentation

Co-authored-by: Tomás Sousa Pereira <up201507414@fe.up.pt>
2021-02-28 11:00:08 -08:00
Justin Ruan 144afe6b49 Add label_to_csv.py to convert txt or xml files to csv. Also, add the (#704)
README.md to tell how to do the transformation
2021-02-28 10:59:44 -08:00
dependabot[bot] ebb2b83387 Bump lxml from 4.2.4 to 4.6.2 in /requirements (#694)
Bumps [lxml](https://github.com/lxml/lxml) from 4.2.4 to 4.6.2.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.2.4...lxml-4.6.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-09 09:30:33 -08: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
darrenl 0a581ef7e9 Update README.rst 2021-01-01 11:24:08 -08:00
tzutalin a64cbcae03 Updated history 2020-11-14 23:25:29 -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