Skip to content

timit3-github/MJPEGWriter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MJPEGWriter

OpenCV Video HTTP Streaming via MJPEG. Based on the code found in StackExchange - CodeReview and Answers - OpenCV

Changes from the original

  • 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

Compiling

Cross-compile with C++11, OpenCV libraries and pthread.
You can use cmake.

Usage

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

About

Lightweight HTTP server to stream your OpenCV processing in C++ for UnitV2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%