Skip to main content

A simple package for getting live frames from rtsp streams.

Project description

RTSParty

A RTSP module that makes it easy to grab live frames from a RTSP stream. This package basically just wraps cv2 and lets you grab the latest frame from the camera, instead of relying on the buffer.

Usage

from rtsparty import Stream


stream = Stream('rtsp://username:password@10.0.0.1/endpoint/', live=True)

# Get a live frame from the camera
live_frame_from_camera = stream.get_frame()

# Force a reconnection
stream.reconnect()

# Show a live view of the stream
stream.view()

To grab the latest frame from the camera no matter what, construct the stream with live=True (or leave it out, it's the default):

stream = Stream(live=True)
stream = Stream()

To use the buffer, which may not provide the most live images from the camera, set live to False.

stream = Stream(live=False)

By leaving out the first argument in the Stream constructor, it will by default use the default video capture device on your machine (your webcam most likely).

Project details


Download files

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

Source Distribution

rtsparty-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

rtsparty-0.0.2-py2-none-any.whl (3.5 kB view details)

Uploaded Python 2

File details

Details for the file rtsparty-0.0.2.tar.gz.

File metadata

  • Download URL: rtsparty-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.16

File hashes

Hashes for rtsparty-0.0.2.tar.gz
Algorithm Hash digest
SHA256 315acdb3006558022d17f2089be50099810342c07cfe5915592d11df1405d977
MD5 e8f2e16d543739580621ed2f51e8828e
BLAKE2b-256 b75646752c1ac56522d338d5d6c397f356e54c203c30824cd0daaaefb51675c6

See more details on using hashes here.

File details

Details for the file rtsparty-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: rtsparty-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.16

File hashes

Hashes for rtsparty-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 5a99c62ae9e43ce42de3992fa3a394ca4d7d5a30b5aabf6c490e1892d9015274
MD5 b17f7bb614f2b7121f09fe74b5f349cc
BLAKE2b-256 5cc9b1db7c10c0f48e7f6b6a0fa662328b710052085b7526437c0aa3b1ce63ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page