개정판 ab69694e
issue #501: back
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
360 | 360 |
## up to here |
361 | 361 |
|
362 | 362 |
if isLineChecked: |
363 |
worker.recognizeLine(drawDetectedLines, mainRes, listWidget, worker.graphicsView, worker, batch) |
|
363 |
loop = QEventLoop() |
|
364 |
worker.recognizeLine(drawDetectedLines, mainRes, listWidget, worker.graphicsView, worker, batch, loop) |
|
365 |
#loop.exec_() |
|
364 | 366 |
|
365 | 367 |
loop = QEventLoop() |
366 | 368 |
drawUnknownItems.emit(mainRes, loop) |
... | ... | |
381 | 383 |
humkyung 2018.07.04 call arrangeLinePosition after creating line |
382 | 384 |
''' |
383 | 385 |
@staticmethod |
384 |
def recognizeLine(drawDetectedLines, path, listWidget, graphicsView, worker, batch): |
|
386 |
def recognizeLine(drawDetectedLines, path, listWidget, graphicsView, worker, batch, loop):
|
|
385 | 387 |
from shapely.geometry import Point, LineString |
386 | 388 |
from SymbolSvgItem import SymbolSvgItem |
387 | 389 |
from QEngineeringFlowArrowItem import QEngineeringFlowArrowItem |
... | ... | |
455 | 457 |
# up to here |
456 | 458 |
|
457 | 459 |
listWidget.addItem('라인 생성 중...') |
458 |
loop = QEventLoop() |
|
459 | 460 |
drawDetectedLines.emit(connectedLines, loop) |
460 | 461 |
loop.exec_() |
461 | 462 |
except Exception as ex: |
내보내기 Unified diff