Skip to main content

RaspiCameraLivestream

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

Windows:

Open cmd as admin and type:

pip install rpistream

Examples:

Streaming from a webcam

Server

from rpistream.camera 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)
scale=0.5
server = Server(port=5000)
server.serve() # Blocking; waits for a connection before continuing
server.startStream(retrieveImage,[cam,scale]) # Calls retrieveImage(*args) every frame  

Client

from rpistream.streamclient import Client

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

Release files for rpistream 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpistream 0.2.2
File Size Uploaded
rpistream-0.2.2.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpistream 0.2.2
File Interpreter ABI Platform
rpistream-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / rpistream-0.2.2.tar.gz

Download URL rpistream-0.2.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
326b4f6f8191f03d21c44547df72ed80bb188a8df78e9bd4ef397e7f1db3e0de
BLAKE2b-256 checksum
How to use checksums
3bc27cc464a8712331de6bf63e5efab24cb60cf8c09a3ada765213e35b3e8b0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / rpistream-0.2.2-py3-none-any.whl

Download URL rpistream-0.2.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a556f2bb62046d96ab6d6f86150e4ac4851f4dfaf3f49327c8df23bb19c4f2cf
BLAKE2b-256 checksum
How to use checksums
afcb39f5a819910395a0ed0d8949bbb4d4d35ac2fa005972f898e8d73e2f3aad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.1.26

1 release file

0.1.25

1 release file

0.1.23

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.8

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

2 release files

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page