Abstract
I wanted to get the data with the Raspberry Pi Camera and process it with the AI on my desktop PC so I made a camera images transmission system using socket communication.
How it works
I transmitted the Pi camera image following steps.
1. Take a picture with the Pi camera.
2. Send the image.
3. Receive and display the image.
1.Take a picture with the Pi camera.
Take a picture and store it in memory as binary data.
4. Advanced Recipes — Picamera 1.12 documentation
2.Transmit the image.
Send STORE command to server PC.
Then the binary data is sent 1024 bytes at a time.
Tutorial 30: Transfer & Backup a File using Socket File Transfer - The Zan Show
3. Receive and display the image.
Server PC receives the STORE command and starts to receive the binary data.
Then store it as an image.
Source code and How to use it
1. Connect your Pi camera and run this source code on your Raspberry Pi.
This code is client-side.
*Make sure to set server PC address.
2. Run this notebook with Jupyter Notebook on your PC.
This code is server-side.
*Make sure to set this (server) PC address