| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Python OpenCV webcam sending frames through TCP socket.
In standard interent protocols like TCP and UDP, socket address is the combination of:
socket address = (IP address, port number)
Depending on the operating system, you can easily find the IP address of your machine. Go to the terminal window and run this command:
ipconfig getifaddr en0
ifconfig
For Windows users. The required IP address will show against IPv4 Address.
For Linux and Ubuntu users. The required IP address will be for Wifi LAN (inet).
you can create a new project based on this repo by doing the following:
git clone https://github.com/1010code/python-webcam-socket-streaming.git
When that's done, install the project dependencies.
pip install -r requirements.txt
open terminal and execute server.py. And we'll create TCP socket and listening 8485 port.
python server.py
After running the server.py, copy paste the IP and PORT to client.py. After doing that, then start client.
python client.py
| Back | FazBrowse Home | New Git URL |