Skip to content

Instantly share code, notes, and snippets.

@kittinan
kittinan / client.py
Last active November 15, 2024 15:35
Python OpenCV webcam send image frame over socket
import cv2
import io
import socket
import struct
import time
import pickle
import zlib
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(('192.168.1.124', 8485))