|
PiImageStreamer
|
#include <opencv2/opencv.hpp>#include <atomic>#include <mutex>#include <string>

Go to the source code of this file.
Classes | |
| class | SWE4211RPi::AbstractImageTransmitter |
This code is developed as part of the MSOE SWE4211 Real Time Systems course, but can be freely used by others.
SWE4211 Real Time Systems is a required course for students studying the discipline of software engineering.
This Software is provided under the License on an "AS IS" basis and without warranties of any kind concerning the Software, including without limitation merchantability, fitness for a particular purpose, absence of defects or errors, accuracy, and non-infringement of intellectual property rights other than copyright. This disclaimer of warranty is an essential part of the License and a condition for the grant of any rights to this Software.
This class is the abstract parent for image transmitters. It holds the destination machine and port that images are streamed to, protects the destination with a mutex so it can be changed while streaming is in progress, and keeps a count of the connections that have been made. Derived classes implement streamImage() to encode and send each image.