Skip to content

OpenCV server-client communication for remote video processing

Notifications You must be signed in to change notification settings

sayef/remote-cv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV Remote Video Processing

Introduction:

Stream your local webcam video through an http server using VLC, process the video in a remote server machine, may be with high processing power and having no suitable usb connection to the camera, and then let the remote machine send back the processed video to your local machine for real-time visualization.

How it works:

    • local.py hosts a http server (default localhost:5050) for streaming local webcam's video using vlc subprocess.
    • Then open a socket connection to listen from a remote server (default localhost:5052).
    • remote.py captures video from remote http address localhost:5050.
    • Then sends the data back to the client socket opened with address localhost:5052

Commands:

  1. python local.py \
    --stream-host=127.0.0.1 \
    --stream-port=5050 \
    --server-host=127.0.0.1 \
    --server-port=5052
    
  2.  python remote.py \
     --stream-host=127.0.0.1 \
     --stream-port=5050 \
     --server-host=127.0.0.1 \
     --server-port=5052
    

Requirements

  1. pip install opencv-python
  2. pip install numpy
  3. sudo apt install vlc

About

OpenCV server-client communication for remote video processing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages