OpenCV Video HTTP Streaming via MJPEG. Based on the code found in StackExchange - CodeReview and Answers - OpenCV
- Change UnitV2's output pixel format from YUYV to MJPG
- Skip frame data decoding and encoding
- Camera resolution change by argument at launch
- Remove unnecessary wait for UnitV2
Cross-compile with C++11, OpenCV libraries and pthread.
You can use cmake.
sudo MJPEGWriter <mode>
<mode>
0:352x288 about 14fps
1:640x480 about 12fps
2:800x600 about 10fps
3:1280x720 about 14fps
Then, open http://10.254.239.1/ in your browser