Skip to main content

A very simple library built for streaming video from a remote Raspberry Pi server in realtime.

Project description


A very simple library built for streaming video from a remote Raspberry Pi server in realtime.

How to install:

MacOS or linux:

Open your terminal and type:

sudo python -m pip install rpistream


Open cmd as admin and type:

pip install rpistream


Streaming from a webcam


from import Camera
from rpistream.streamserver import Server

def retrieveImage(cam,imgResize):
    image = cv2.resize(cam.image,(0,0),fx=imgResize,fy=imgResize)
    return image

cam = Camera(mirror=True)
server = Server(port=5000)
server.serve() # Blocking; waits for a connection before continuing
server.startStream(retrieveImage,[cam,scale]) # Calls retrieveImage(*args) every frame  


from rpistream.streamclient import Client

client = Client(serverIp="localhost", WriteFile=True) # Connects to the server
client.startStream() # Starts recieving data and displaying the video

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rpistream, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size rpistream-0.2.2-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rpistream-0.2.2.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page