👉🏻Live Streaming Video Chat App without voice using cv2 module of Python
Let’s Go !!
Prerequisite:-
1- Webcam
2- Internet Connectivity
3- Any IDE with python extension. (eg- jupyter notebook)
4- Some of the python libraries already installed (socket, imutils, pickle, struct, cv2)
Note- If pip is not upgraded then run this command
→ python -m pip install –upgrade pip
Here are the commands to install given libraries through cmd-
→ pip install sockets
→ pip install imutils
→ pip install pickle-mixin
→pip install supyr_struct
→ pip install opencv-python
Let’s know in brief about socket programming -
Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while other socket reaches out to the other to form a connection.
Write some code-
Create a python files named as “server.py” and “client.py”
👆🏻 Above is the GitHub url you can find code there.
Clone that code and run into your IDE.
Run file “server.py”
You get your host ip of your system. Enter your host ip in client.py file in socket creation section.
Run file “client.py”
See your webcam light opens and two video frame open in task bar one is from server side and another is client side.
RESULTS -
Hurrahhh!!!😍😍
We did it…✌🏻✌🏻
Let’s know a little about open CV-
OpenCV is a Python open-source library, which is used for computer vision in Artificial intelligence, Machine Learning, face recognition, etc.
In OpenCV, the CV is an abbreviation form of a computer vision, which is defined as a field of study that helps computers to understand the content of the digital images such as photographs and videos.
Thank you for reading !