I wrote a Lepton 3.x compatible v4l2 capture utility for Raspberry Pi. It captures SPI data from the Lepton 3.x on one thread and colorizes the frame, then it passes that frame buffer to a separate thread where libjpegturbo encodes the buffer to JPG and outputs to a v4l2 sink device (v4l2loopback). My intent of this capture utility was for streaming via mjpeg-streamer, which it works flawlessly with. Via command line parameters, the SPI chip select port is selectable and so is the V4L2 device. I am willing to share the source code of the project if this be of interest to the community.
I wrote a Lepton 3.x compatible v4l2 capture utility for Raspberry Pi. It captures SPI data from the Lepton 3.x on one thread and colorizes the frame, then it passes that frame buffer to a separate thread where libjpegturbo encodes the buffer to JPG and outputs to a v4l2 sink device (v4l2loopback). My intent of this capture utility was for streaming via mjpeg-streamer, which it works flawlessly with. Via command line parameters, the SPI chip select port is selectable and so is the V4L2 device. I am willing to share the source code of the project if this be of interest to the community.