개정판 6c9a3ed5
issue #000: server
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=None, save=True)
|
|
63 |
trained_model2=None, save=False)
|
|
64 | 64 |
|
65 | 65 |
return jsonify({'symbol_box': boxes[0]}) |
66 | 66 |
|
DTI_PID/WebServer/run.py | ||
---|---|---|
1 | 1 |
from app import app |
2 | 2 |
|
3 | 3 |
if __name__ == '__main__': |
4 |
app.run(port=8080, debug=True, host='0.0.0.0')
|
|
4 |
app.run(port=8080, debug=False, host='0.0.0.0')
|
|
5 | 5 |
#app.run(debug=False) |
내보내기 Unified diff