Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gill-singh-a/lan-camera-streaming
A simple Server-Client model that uses TCP Connection for streaming Live Grayscale Video from one device's camera to another device's screen on the same LAN (Local Area Network)
https://github.com/gill-singh-a/lan-camera-streaming
camera deserialization lan network networking opencv pickle python python-3 serialziation sockets tcp
Last synced: 8 days ago
JSON representation
A simple Server-Client model that uses TCP Connection for streaming Live Grayscale Video from one device's camera to another device's screen on the same LAN (Local Area Network)
- Host: GitHub
- URL: https://github.com/gill-singh-a/lan-camera-streaming
- Owner: Gill-Singh-A
- Created: 2023-04-21T12:08:52.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-19T22:04:45.000Z (10 months ago)
- Last Synced: 2024-05-11T05:49:28.393Z (6 months ago)
- Topics: camera, deserialization, lan, network, networking, opencv, pickle, python, python-3, serialziation, sockets, tcp
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LAN Camera Streaming
A simple Server-Client model that uses TCP Connection for streaming Live Video from one device's camera to another device's screen on the same LAN (Local Area Network).## Requirements
Language Used = Python3
Modules/Packages used:
* socket
* cv2
* pickle
* sys
* datetime
* time
* coloramaInstall the dependencies:
```bash
pip install -r requirements.txt
```## Input
# server.py
* '-H', "--host": IPv4 Address on which to start the Server (Default=0.0.0.0)
* '-p', "--port": Port on which to start the Server (Default=2626)
* '-b', "--buffer-size": Buffer Size for Receiving Data from the Clients (Default=1024)
* '-t', "--timeout": Timeout for accepting connection from Clients (Default=1)
# client.py
* '-H', "--host": IPv4 Address of the Server
* '-p', "--port": Port of the Server
* '-b', "--buffer_size": Buffer Size for Receiving Data from the Server (Default=1024)For example:
```bash
python server.py --host 0.0.0.0 --port 2626
```
Here **0.0.0.0** is the address on which to start the server and this specific address means that we can accept connections from any device on the LAN (Local Area Network). And **2626** is the port.
For client to connect to this server, the client should type the LAN IP Address of the Device that runs "server.py".## Output
After successful connection, the Device that runs "server.py" can see the Live Grayscale Video captured by the camera of the device that runs "client.py".