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.
- 
local.pyhosts a http server (defaultlocalhost:5050) for streaming local webcam's video usingvlcsubprocess.- Then open a socket connection to listen from a remote server (default 
localhost:5052). 
 - 
remote.pycaptures video from remote http addresslocalhost:5050.- Then sends the data back to the client socket opened with address 
localhost:5052 
 
- 
python local.py \ --stream-host=127.0.0.1 \ --stream-port=5050 \ --server-host=127.0.0.1 \ --server-port=5052 - 
python remote.py \ --stream-host=127.0.0.1 \ --stream-port=5050 \ --server-host=127.0.0.1 \ --server-port=5052 
pip install opencv-pythonpip install numpysudo apt install vlc