개정판 c9176a4d
issue #000: label restore
Change-Id: Iccddc557d51206fd27c07023318a6b6a9718908f
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2007 | 2007 |
for item in tile_symbols: |
2008 | 2008 |
rect = item.sceneBoundingRect() |
2009 | 2009 |
label, xMin, yMin, xMax, yMax = item.name, int(rect.x() - 5 - x), int(rect.y() - 5 - y), int(rect.x() + rect.width() + 5 - x), int(rect.y() + rect.height() + 5 - y) |
2010 |
label = 'small' if index == 0 else 'big' # for single class test |
|
2010 |
#label = 'small' if index == 0 else 'big' # for single class test
|
|
2011 | 2011 |
xMin = xMin if xMin > 0 else 0 |
2012 | 2012 |
yMin = yMin if yMin > 0 else 0 |
2013 | 2013 |
xMax = xMax if xMax < size else size |
내보내기 Unified diff