프로젝트

일반

사용자정보

개정판 1d7af5dc

ID1d7af5dce7987761a403c4fc46a0e67ddc061a7a
상위 5c89a091
하위 a56a12dd

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

issue #000: recognition test

Change-Id: I109db3ca213d1e0f10bac924bb71408d4ee4af33

차이점 보기:

DTI_PID/DTI_PID/RecognitionDialog.py
314 314
                    for sym in searchedSymbolList:
315 315
                        pool.submit(Worker.removeDetectedSymbol, sym, appDocData.imgSrc)
316 316
                    pool.shutdown(wait = True)
317
                    print(searchedSymbolList[0].getOcrOption())
317
                    #print(searchedSymbolList[0].getOcrOption())
318 318
                else:
319 319
                    # if symbol is excluded from recognition, keep it
320
                    '''
320 321
                    import math
321 322

  
322 323
                    symbolItems = [item for item in worker.graphicsView.scene.items() if issubclass(type(item), SymbolSvgItem)]
......
369 370
                        worker.graphicsView.scene.removeItem(symbolItem)
370 371
                    
371 372
                    pool = futures.ThreadPoolExecutor(max_workers = THREAD_MAX_WORKER)
373
                    '''
374
                    #symbolItems = [item for item in worker.graphicsView.scene.items() if issubclass(type(item), SymbolSvgItem)]
375
                    #appDocData.symbols.extend(symbolItems)
376
                    #appDocData.allItems.extend(symbolItems)
372 377

  
373
                    for sym in searchedSymbolList:
374
                        pool.submit(Worker.removeDetectedSymbol, sym, appDocData.imgSrc)
375
                    pool.shutdown(wait = True)
378
                    #for sym in searchedSymbolList:
379
                    #    pool.submit(Worker.removeDetectedSymbol, sym, appDocData.imgSrc)
380
                    #pool.shutdown(wait = True)
376 381

  
377 382
                worker.updateBatchProgress.emit(len(srcList), 1)
378 383

  
......
407 412
                    # up to here
408 413
                   
409 414
                    appDocData.imgName = os.path.splitext(os.path.basename(mainRes))[0]
415
                else:
416
                    pass
410 417
    
411 418
                worker.updateBatchProgress.emit(len(srcList), 2)
412 419

  

내보내기 Unified diff

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