Start the calibration web server.
()
| 2329 | ) |
| 2330 | |
| 2331 | def main(): |
| 2332 | """Start the calibration web server.""" |
| 2333 | print("=" * 60) |
| 2334 | print("CAMERA CALIBRATION WEB UI") |
| 2335 | print("=" * 60) |
| 2336 | print() |
| 2337 | print("Starting web server...") |
| 2338 | print("Open your browser to: http://localhost:5050") |
| 2339 | print() |
| 2340 | print("Press Ctrl+C to stop the server.") |
| 2341 | print() |
| 2342 | |
| 2343 | # Open browser |
| 2344 | webbrowser.open('http://localhost:5050') |
| 2345 | |
| 2346 | # Start Flask |
| 2347 | app.run(host='0.0.0.0', port=5050, debug=False, threaded=True) |
| 2348 | |
| 2349 | if __name__ == '__main__': |
| 2350 | main() |
no test coverage detected