directory

  • preface
  • Required JAR packages and dependencies
  • Modules to implement (with source tutorial)
  • Project Effect Display

preface

Recently I wanted to use Java to implement a function similar to remote broadcast
Like this :(schematic function)

Required JAR packages and dependencies

Maven depends on:

< the dependency > < groupId > org. Bytedeco < / groupId > < artifactId > javacv - platform < / artifactId > < version > 1.4.1 < / version > </dependency> <! -- https://mvnrepository.com/artifact/org.bytedeco.javacpp-presets/opencv-platform --> <dependency> < the groupId > org. Bytedeco. Javacpp - presets < / groupId > < artifactId > opencv - platform < / artifactId > < version > 3.4.1 track - 1.4.1 < / version > </dependency>Copy the code

Modules to implement (with source tutorial) :

Stream pusher — video acquisition, turn stream pusher streaming stream — broadcast stream, display server — build

Project effect Display:

Laptop camera:

Live show + mobile screen:

Live broadcast images obtained by other notebooks: