Skip to main content

Use Elphel camera from python with opencv2

Project description

Control Elphel camera 353 from python using RTSP protocol and from imgsrv access for full resoltion images. See the GitHub Page: https://github.com/hchauvet/pyElphel

Requirement

Installation

From file:

python setup.py install

From pip:

pip install pyElphel

Examples

Video at full resolution (2592x1936) is impossible using RTSP. For this resolution use grab_image_slow(), which relies on imgsrv access through http.

Set parameters:

from pyElphel import Elphel

cam = Elphel()

cam.params['WOI_WIDTH'] = 1280
cam.params['WOI_HEIGHT'] = 720
cam.params['COLOR'] = 1
cam.params['EXPOS'] = 10000

cam.set_params()

Live display:

from pyElphel import Elphel

with Elphel() as cam:
    cam.display()

Get single image:

from pyElphel import Elphel

with Elphel() as cam:
    cam.init_live()

    img = cam.grab_image()

Get single image at full resolution:

from pyElphel import Elphel

cam = Elphel()

img = cam.grab_image_slow()

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pyElphel-0.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file pyElphel-0.1.tar.gz.

File metadata

  • Download URL: pyElphel-0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyElphel-0.1.tar.gz
Algorithm Hash digest
SHA256 140781f1753b4348825757939656e0aa7588ef332ecd516820ddd6cfd0b1d84c
MD5 60484321ff4f269fa645f53e6aece924
BLAKE2b-256 b93472a1644e416b7976bc41a9b58b7249744722cabadd8115172c139209a52b

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