개정판 c0afc0f6
issue #000: fix recognition dictionary
Change-Id: I19f3e4da4facaacbb5057398153555ef92ec256c
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
602 | 602 |
if not all: |
603 | 603 |
sql = """SELECT a.UID,a.Name,b.Type,a.Threshold,a.MinMatchPoint,a.IsDetectOrigin,a.RotationCount, |
604 | 604 |
a.OCROption,a.IsContainChild,a.OriginalPoint,a.ConnectionPoint,a.BaseSymbol,a.AdditionalSymbol, |
605 |
a.IsExceptDetect,a.HasInstrumentLabel,a.flip,a.TextArea,b.UID FROM Symbol a inner join SymbolType b on |
|
605 |
a.IsExceptDetect,a.HasInstrumentLabel,a.flip,a.TextArea,b.UID DB_UID FROM Symbol a inner join SymbolType b on
|
|
606 | 606 |
a.SymbolType_UID=b.UID WHERE a.IsExceptDetect = 0 order by width * height desc""" |
607 | 607 |
else: |
608 | 608 |
sql = """SELECT a.UID,a.Name,b.Type,a.Threshold,a.MinMatchPoint,a.IsDetectOrigin,a.RotationCount, |
... | ... | |
613 | 613 |
cursor.execute(sql) |
614 | 614 |
rows = cursor.fetchall() |
615 | 615 |
for row in rows: |
616 |
sym = symbol.SymbolBase(row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8], row[9], |
|
617 |
row[10], row[11], row[12], row[13], row[14], row[0], iType=row[17], |
|
618 |
detectFlip=row[15], text_area=row[16]) # uid is last item |
|
616 |
sym = symbol.SymbolBase(row['Name'], row['Type'], row['Threshold'], |
|
617 |
row['MinMatchPoint'], row['IsDetectOrigin'], |
|
618 |
row['RotationCount'], row['OCROption'], |
|
619 |
row['IsContainChild'], row['OriginalPoint'], |
|
620 |
row['ConnectionPoint'], row['BaseSymbol'], |
|
621 |
row['AdditionalSymbol'], row['IsExceptDetect'], |
|
622 |
row['HasInstrumentLabel'], row['UID'], |
|
623 |
iType=row['DB_UID'], |
|
624 |
detectFlip=row['flip'], text_area=row['TextArea']) |
|
619 | 625 |
targetSymbolList.append(sym) |
620 | 626 |
except Exception as ex: |
621 | 627 |
print('error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
내보내기 Unified diff