How to send and receive webcam stream using tcp sockets in Python?
问题 I am trying to recreate this project. What I have is a server (my computer), and a client (my raspberry pi). What I am doing differently than the original project is that I am trying to use a simple webcam instead of a raspberry pi camera to stream images from my rpi to the server. I know that I must: Get opencv image frames from the camera. Convert a frame (which is a numpy array) to bytes. Transfer the bytes from the client to the server. Convert the bytes back into frames and view.