Summary
In this chapter, we showed how WebSockets can help us bring a more interactive experience to users. Thanks to OpenCV, we were able to quickly implement a face detection system. Then, we integrated it into a WebSocket endpoint with the help of FastAPI. Finally, by using a modern JavaScript API, we sent video input and displayed algorithm results directly in the browser. All in all, a project like this might sound complex to make at first, but we saw that powerful tools such as FastAPI enable us to get results in a very short time and with very comprehensible source code.
This is the end of the book and our FastAPI journey together. We sincerely hope that you liked it and that you learned a lot along the way. We covered many subjects, sometimes just by scratching the surface, but you should now be ready to build your own projects with FastAPI and serve up smart data science algorithms. Be sure to check out all the external resources we mentioned along the way, as they will...