개정판 aef56f4a
fixed issue #622:
- write texts to xml
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1546 | 1546 |
appDocData.equipments.append(item) |
1547 | 1547 |
|
1548 | 1548 |
appDocData.texts.clear() |
1549 |
appDocData.texts = [item for item in self.graphicsView.scene.items() if issubclass(type(item), QEngineeringTextItem) and type(item) is not QEngineeringLineNoItem] |
|
1549 |
appDocData.texts = [item for item in self.graphicsView.scene.items() if issubclass(type(item), QEngineeringTextItem) and type(item) is not QEngineeringLineNoTextItem]
|
|
1550 | 1550 |
## up to here |
1551 | 1551 |
|
1552 |
appDocData.imgOutput = np.ones((docData.imgHeight, docData.imgWidth), np.uint8)*255
|
|
1553 |
xg.writeOutputXml(docData.imgName, docData.imgWidth, docData.imgHeight) # TODO: check
|
|
1554 |
project = docData.getCurrentProject()
|
|
1552 |
appDocData.imgOutput = np.ones((appDocData.imgHeight, appDocData.imgWidth), np.uint8)*255
|
|
1553 |
xg.writeOutputXml(appDocData.imgName, appDocData.imgWidth, appDocData.imgHeight) # TODO: check
|
|
1554 |
project = appDocData.getCurrentProject()
|
|
1555 | 1555 |
cv2.imwrite(os.path.join(project.getTempPath() , 'OUTPUT.png') , appDocData.imgOutput) |
1556 | 1556 |
except Exception as ex: |
1557 | 1557 |
message = 'error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno) |
1558 | 1558 |
self.addMessage.emit(MessageType.Error, message) |
1559 | 1559 |
|
1560 |
|
|
1561 | 1560 |
''' |
1562 | 1561 |
@brief resetting attribute at secne |
1563 | 1562 |
@author kyoyho |
내보내기 Unified diff