개정판 a2b9ed96
issue #000: fix save and scene error test
Change-Id: I4467c0f0c85e7d09b3cfa7576e0312384cf3b4f3
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
1094 | 1094 |
import math |
1095 | 1095 |
from TextInfo import TextInfo |
1096 | 1096 |
|
1097 |
print('flag') |
|
1098 |
|
|
1097 | 1099 |
"""load texts""" |
1098 | 1100 |
worker.add_predata_to_scene.emit(app_doc_data.activeDrawing, worker.text_scene, False, True, False, False, False) |
1099 | 1101 |
worker.cond.wait(worker.mutex) |
... | ... | |
1155 | 1157 |
if not worker.isTextChecked: |
1156 | 1158 |
textInfoList.clear() |
1157 | 1159 |
# up to here |
1160 |
print('flag2') |
|
1158 | 1161 |
|
1159 | 1162 |
removedSymbolImgPath = os.path.join(project.getTempPath(), os.path.basename(mainRes)) |
1160 | 1163 |
cv2.imwrite(removedSymbolImgPath, app_doc_data.imgSrc) |
... | ... | |
1171 | 1174 |
Worker.recognizeLine(mainRes, listWidget, worker.scene, worker) |
1172 | 1175 |
else: |
1173 | 1176 |
"""load lines""" |
1177 |
print('flag3') |
|
1174 | 1178 |
worker.add_predata_to_scene.emit(app_doc_data.activeDrawing, worker.line_scene, False, False, True, False, False) |
1175 | 1179 |
worker.cond.wait(worker.mutex) |
1176 | 1180 |
"""up to here""" |
... | ... | |
1320 | 1324 |
# up to here |
1321 | 1325 |
|
1322 | 1326 |
# change line type using visual pattern |
1327 |
print('flag4') |
|
1323 | 1328 |
try: |
1324 | 1329 |
lines = [] |
1325 | 1330 |
for sym in symbols: |
... | ... | |
1346 | 1351 |
worker.create_unknown_items(mainRes) |
1347 | 1352 |
worker.add_detected_items_to_scene.emit(worker.scene, flange_list) |
1348 | 1353 |
worker.cond.wait(worker.mutex) |
1354 |
print('flag5') |
|
1349 | 1355 |
|
1350 | 1356 |
# run preset |
1351 | 1357 |
presets = app_doc_data.getSymbolPreset() |
DTI_PID/DTI_PID/XmlGenerator.py | ||
---|---|---|
475 | 475 |
resultDic[key][1].append(str(item.uid)) |
476 | 476 |
|
477 | 477 |
for line in tracer_line_nos: |
478 |
key = str(type(line)) |
|
479 |
if not key in resultDic: |
|
480 |
resultDic[key] = [0, []] |
|
478 | 481 |
if issubclass(type(line), QEngineeringTrimLineNoTextItem): |
479 | 482 |
trimNode = line.toXml() |
480 | 483 |
if trimNode: |
481 |
resultDic[str(type(item))][0] += 1
|
|
484 |
resultDic[key][0] += 1
|
|
482 | 485 |
trimLineNoListNode.append(trimNode) |
483 | 486 |
else: |
484 |
resultDic[str(type(item))][1].append(str(line.uid))
|
|
487 |
resultDic[key][1].append(str(line.uid))
|
|
485 | 488 |
|
486 | 489 |
xml.append(symbolListNode) |
487 | 490 |
xml.append(textInfoListNode) |
DTI_PID/WebServer/run.py | ||
---|---|---|
1 | 1 |
from app import app |
2 | 2 |
|
3 | 3 |
if __name__ == '__main__': |
4 |
#app.run(port=8080, debug=False)#, host='0.0.0.0') |
|
5 |
app.run(debug=False) |
|
4 |
app.run(port=8080, debug=False, host='0.0.0.0') |
|
5 |
#app.run(debug=False) |
내보내기 Unified diff