프로젝트

일반

사용자정보

개정판 e88563ca

IDe88563ca70b7a995cde44a5f7a172a2bb0f78a8a
상위 f500705a
하위 39bfc930, 0adeae22

함의성이(가) 약 5년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)