프로젝트

일반

사용자정보

개정판 94d5675a

ID94d5675a64fbd95ae20186062180392076cc6f68
상위 6ca8a44c
하위 45f97b1f

함의성이(가) 4년 이상 전에 추가함

issue #663: load data before recognition on going

Change-Id: I9e9803bc8c75a3edff699b2b0d9a2984127aadaa

차이점 보기:

DTI_PID/DTI_PID/RecognitionDialog.py
760 760
        # cv2.waitKey(0)
761 761
        # cv2.destroyAllWindows()
762 762
        return (True, mergedOtherLine)
763
    
764
    def load_recognition_data_from_xml(self):
765
        from xml.etree.ElementTree import Element, SubElement, dump, ElementTree, parse
766
        from EngineeringVendorItem import QEngineeringVendorItem
767

  
768
        pass
769

  
770
    def load_recognition_data_from_db(self):
771
        from EngineeringVendorItem import QEngineeringVendorItem
772
        
773
        pass
763 774

  
764 775
    @staticmethod
765 776
    def executeRecognition(path, listWidget, isLineChecked, worker):
......
807 818
                app_doc_data.activeDrawing = matches[0] if matches else Drawing(None, app_doc_data.imgName, None)
808 819
                app_doc_data.activeDrawing.set_pid_source(Image.open(mainRes))
809 820

  
810
                '''
811 821
                # Load data from xml or db
812 822
                path = os.path.join(app_doc_data.getCurrentProject().getTempPath(), app_doc_data.imgName + '.xml')
813 823
                configs = app_doc_data.getConfigs('Data Load', 'Xml First')
......
815 825
                    worker.load_recognition_data_from_xml(path)
816 826
                elif configs and int(configs[0].value) <= 1:
817 827
                    worker.load_recognition_data_from_db(app_doc_data.activeDrawing)
818
                '''
819 828

  
820 829
                # remove not drawing area
821 830
                configs = app_doc_data.getConfigs('{} Equipment Desc Area'.format(app_doc_data.imgName))

내보내기 Unified diff

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