constants.py 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. # Copyright (c) <2015-Present> Tzutalin
  2. # Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba,
  3. # William T. Freeman. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
  4. # associated documentation files (the "Software"), to deal in the Software without restriction, including without
  5. # limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
  6. # Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  7. # The above copyright notice and this permission notice shall be included in all copies or substantial portions of
  8. # the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
  9. # NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
  10. # SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  11. # CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  12. # THE SOFTWARE.
  13. SETTING_FILENAME = 'filename'
  14. SETTING_RECENT_FILES = 'recentFiles'
  15. SETTING_WIN_SIZE = 'window/size'
  16. SETTING_WIN_POSE = 'window/position'
  17. SETTING_WIN_GEOMETRY = 'window/geometry'
  18. SETTING_LINE_COLOR = 'line/color'
  19. SETTING_FILL_COLOR = 'fill/color'
  20. SETTING_ADVANCE_MODE = 'advanced'
  21. SETTING_WIN_STATE = 'window/state'
  22. SETTING_SAVE_DIR = 'savedir'
  23. SETTING_PAINT_LABEL = 'paintlabel'
  24. SETTING_LAST_OPEN_DIR = 'lastOpenDir'
  25. SETTING_AUTO_SAVE = 'autosave'
  26. SETTING_SINGLE_CLASS = 'singleclass'
  27. FORMAT_PASCALVOC='PascalVOC'
  28. FORMAT_YOLO='YOLO'
  29. SETTING_DRAW_SQUARE = 'draw/square'
  30. SETTING_LABEL_FILE_FORMAT= 'labelFileFormat'
  31. DEFAULT_ENCODING = 'utf-8'