A sample example of using libcamera to read frames from camera and display them.
The code does not belong to me I just reused few components to achieve the output I needed. The orignal code can be fond here https://github.com/kbingham/libcamera/tree/master/src/py