개정판 e88563ca
issue #1366: change img channel
Change-Id: I922400c5fe31e5d36b115b09a575eea6873fd1d2
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1888 | 1888 |
training_xml_path = os.path.join(save_path, training_uid + '.xml') |
1889 | 1889 |
|
1890 | 1890 |
# save image |
1891 |
_img = b_img[round(tile_rect.top()):round(tile_rect.bottom()), |
|
1892 |
round(tile_rect.left()):round(tile_rect.right())] |
|
1893 |
cv2.imwrite(training_image_path, _img) |
|
1891 |
#_img = b_img[round(tile_rect.top()):round(tile_rect.bottom()), |
|
1892 |
# round(tile_rect.left()):round(tile_rect.right())] |
|
1893 |
#cv2.imwrite(training_image_path, _img) |
|
1894 |
_img = self.graphicsView.image().copy(round(tile_rect.left()), round(tile_rect.top()), round(tile_rect.width()), round(tile_rect.height())) |
|
1895 |
_img.save(training_image_path) |
|
1894 | 1896 |
|
1895 | 1897 |
# save label |
1896 | 1898 |
xml = Element('annotation') |
... | ... | |
1976 | 1978 |
|
1977 | 1979 |
index += 1 |
1978 | 1980 |
|
1981 |
QMessageBox.about(self, self.tr("Notice"), self.tr('Successfully applied. ')) |
|
1979 | 1982 |
|
1980 | 1983 |
''' |
1981 | 1984 |
@brief create a line |
내보내기 Unified diff