class documentation
class MJPEGStreamWithTimestamp(lt.outputs.MJPEGStream): (source)
An MJPEG stream where the frame time can be recorded with the frame.
This can be used to capture when the image was taken by the sensor if known rather than take the time it is added into the ring buffer.
| Method | add |
Add a JPEG to the MJPEG stream. |
Add a JPEG to the MJPEG stream.
Modify the standard function to have an option to send in the capture time.
| Parameters | |
frame:bytes | The frame to add |
timestamp:datetime | None | The time the frame was captured. |
| Raises | |
ValueError | if the supplied frame does not start with the JPEG start bytes and end with the end bytes. |