개정판 bda3bab9
issue #1366: for delivery
Change-Id: I2cf0e42d7a8bceea46f6e47f6e0f1874fd94a699
DTI_PID/WebServer/app/recognition/index.py | ||
---|---|---|
60 | 60 |
data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)) + '\\..\\..\\symbol_training\\Data\\', data['name']) |
61 | 61 | |
62 | 62 |
boxes = test_doftech_all_images.get_symbol(imgs, data['name'], root_path=data_path, trained_model1=os.path.join(data_path, 'checkpoint', data['name'] + "_only_params.pth"), \ |
63 |
trained_model2=os.path.dirname(os.path.realpath( |
|
64 |
__file__)) + '\\..\\..\\symbol_recognition\\MODEL\\doftech_all_class_only_params_opc.pth', save=False) |
|
63 |
trained_model2=None, save=False) |
|
65 | 64 | |
66 | 65 |
return jsonify({'symbol_box': boxes[0]}) |
67 | 66 |
내보내기 Unified diff