-[yolo] (https://github.com/ultralytics/ultralytics) -[more yolo example] (https://docs.ultralytics.com/usage/python/) -[flask api + html] (https://www.freecodecamp.org/news/how-to-detect-objects-in-images-using-yolov8/) -*[real time you tube stream] (https://docs.salad.com/docs/yolov8-deployment-tutorial) -[front end websocket] (https://alpha2phi.medium.com/yolo-using-fastapi-websocket-and-react-2b2d28e9f7ed)
- [Websocket] (ultralytics/ultralytics#1102)
- Fastap + WebSocket
- [issue] (fastapi/fastapi#258)
- [Lifespan] (https://fastapi.tiangolo.com/advanced/events/)
- yolo predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg'
- Results saved to D:\projects\pyprojects\yolo-detection\runs\detect\train3\weights
- python object_detector.py
- localhost:8080
- uvicorn fastapi_websocket:app --reload
- uvicorn test:app --reload
- open browser localhost:8000
- curl localhost:8000/push/test
-
[Threads] (fastapi/fastapi#650)
-
[Websocket] (https://apidog.com/articles/how-to-create-and-run-a-websocket-server-in-python/)
-
[flask] (https://pyimagesearch.com/2019/09/02/opencv-stream-video-to-web-browser-html-page/)
(https://stackoverflow.com/questions/56249775/running-a-yolo-model-in-the-flask-server-itself-how-to)