프로젝트

일반

사용자정보

개정판 922fc546

ID922fc54664781354d7fa5a123a4e538f48055967
상위 1a1206f7
하위 81f516e6, 6d02a1eb

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

issue #000: ai test

Change-Id: I365ea9227edad9ebb038bada83571ba698283f10

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
1933 1933
            elif symbol.width and symbol.height:
1934 1934
                if symbol.width > 300 or symbol.height > 300:
1935 1935
                    bigs.append(symbol.getName())
1936
                elif (symbol.width < 38 or symbol.height < 38) or (symbol.width > 450 or symbol.height > 450):
1936
                elif (symbol.width * symbol.height < 1500) or (symbol.width > 450 or symbol.height > 450):
1937 1937
                    continue
1938 1938
                else:
1939 1939
                    smalls.append(symbol.getName())
DTI_PID/DTI_PID/RecognitionDialog.py
3220 3220

  
3221 3221
            # symbol is bigger than roi -> detected symbol area is too big
3222 3222
            if rect[3] * rect[4] > sow * soh * 2.5:
3223
                # for single class test
3224
                #pass
3223 3225
                return (None, None, None, None, None, None, None, None)
3224 3226
            # detected symbol area is too small
3225 3227
            elif rect[3] * rect[4] * 1.8 < sow * soh:
3228
                # for single class test
3229
                #pass
3226 3230
                return (None, None, None, None, None, None, None, None)
3227 3231

  
3228 3232
            # get Rotated Original Point
......
3306 3310
                    #colCount = len(tmRes[0])
3307 3311
                    #col, row = divmod(maxIndex, colCount)
3308 3312

  
3313
                    # for single class test
3314
                    max_val = 80
3315

  
3309 3316
                    if max_val > threshold:
3310 3317
                        searchedInfos.append([max_val, max_loc[0] + x_start, max_loc[1] + y_start, symbolRotatedAngle, flipped, originalPoint, connectionPoint, sw, sh])
3311 3318

  
......
3428 3435
            symbols.append(rect)
3429 3436
        # up to here
3430 3437

  
3438
        # for single class test
3439
        #for symbol in symbols:
3440
        #    symbol[0] = 'globe'
3441

  
3431 3442
        for targetSymbol in targetSymbols[2]:
3432 3443
            symbolName = targetSymbol.getName()
3433 3444
            symbolType = targetSymbol.getType()

내보내기 Unified diff

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