Create a Live Streaming Video Chat App without voice using cv2 module of Python.
what is OpenCV
OpenCV-Python is?a library of Python bindings designed to solve computer vision problems. ... OpenCV-Python makes use of Numpy, which is a highly optimized library for numerical operations with a MATLAB-style syntax. All the OpenCV array structures are converted to and from Numpy arrays.?????
Socket Programming in Python
Sockets are the endpoints of a bidirectional communications channel. Sockets may communicate within a process, between processes on the same machine, or between processes on different continents.
Sockets may be implemented over a number of different channel types: Unix domain sockets, TCP, UDP, and so on. The?socket?library provides specific classes?for handling the common transports as well as a generic interface for handling the rest.
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM
Here we made a socket instance and passed it two parameters. The first parameter is?AF_INET?and the second one is?SOCK_STREAM. AF_INET refers to the address-family ipv4. The SOCK_STREAM means connection-oriented TCP protocol.
1. What is a Network Socket?
A?socket?is one endpoint of a?two-way?communication link between two programs running on the network. The socket mechanism provides a means of inter-process communication (IPC) by establishing named contact points between which the communication takes place.
There are two files in the Video Chat
client.py
server.py
######################################################################
Program is successfully run & output
Github Link- https://github.com/akhilesh-patel/task-36