All Projects → basler → Pypylon

basler / Pypylon

Licence: bsd-3-clause
The official python wrapper for the pylon Camera Software Suite

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pypylon

VehicleInfoOCR
Use your camera to read number plates and obtain vehicle details. Simple, ad-free and faster alternative to existing playstore apps
Stars: ✭ 35 (-86.49%)
Mutual labels:  camera
ionic-multi-camera
Take multiple photos one after another
Stars: ✭ 12 (-95.37%)
Mutual labels:  camera
raspberry pi home security system
Home monitoring system with a Raspberry Pi and sending notifications with a Telegram bot
Stars: ✭ 14 (-94.59%)
Mutual labels:  camera
cannon-bluetooth-remote
Python script to emulate Canon's BR-E1 remote
Stars: ✭ 22 (-91.51%)
Mutual labels:  camera
ios logger
Application for camera and sensor data logging (iOS)
Stars: ✭ 60 (-76.83%)
Mutual labels:  camera
buildLibrealsense2TX
Build librealsense 2.0 library on the NVIDIA Jetson TX Development kit. Intel RealSense D400 series cameras.
Stars: ✭ 54 (-79.15%)
Mutual labels:  camera
realsense-processing
Intel RealSense 2 support for the Processing framework.
Stars: ✭ 70 (-72.97%)
Mutual labels:  camera
laravel-spark-camera
Profile Photo Camera support for Laravel Spark
Stars: ✭ 30 (-88.42%)
Mutual labels:  camera
QuickRawPicker
📷 QuickRawPicker is a free and open source program that lets you cull, pick or rate raw photos captured by your camera. It is also compatible with the XMP sidecar file used by Adobe Bridge/Lightroom/Darktable or PP3 sidecar file used by Rawtherapee.
Stars: ✭ 26 (-89.96%)
Mutual labels:  camera
MCamera
CameraViewController which allows to take photos, set filters, peform image blurring and more.
Stars: ✭ 28 (-89.19%)
Mutual labels:  camera
tethr
JavaScript/TypeScript library built on top of WebUSB for controlling digital cameras from browsers.
Stars: ✭ 62 (-76.06%)
Mutual labels:  camera
ONVIF-Java
A Java client library to discover, control and manage ONVIF-supported devices.
Stars: ✭ 94 (-63.71%)
Mutual labels:  camera
neural-greenscreen
Real time background replacement on a mac os driven webcam using the DeepLabV3 neural network for image segmentation and the native CoreMediaIO DAL framework of Mac OS.
Stars: ✭ 18 (-93.05%)
Mutual labels:  camera
Maple-Syrup-Pi-Camera
Low power smart camera (3D printed) based on the Raspberry Pi Zero W and Google Coral EdgeTPU
Stars: ✭ 31 (-88.03%)
Mutual labels:  camera
GPUImage FilterVideo
录制美颜视频
Stars: ✭ 12 (-95.37%)
Mutual labels:  camera
OCR-Reader
An Android app to extract text from camera preview directly.
Stars: ✭ 43 (-83.4%)
Mutual labels:  camera
PhotosApp
React Native Photos App: AWS Amplify, AWS S3, Mobile Analytics with Pinpoint
Stars: ✭ 21 (-91.89%)
Mutual labels:  camera
Rtspallthethings
Deprecated RTSP media server -- Use github.com/aler9/rtsp-simple-server instead.
Stars: ✭ 258 (-0.39%)
Mutual labels:  camera
AndroidBackgroundVideoRecording
Records camera video in background service
Stars: ✭ 34 (-86.87%)
Mutual labels:  camera
StrayVisualizer
Visualize Data From Stray Scanner https://keke.dev/blog/2021/03/10/Stray-Scanner.html
Stars: ✭ 30 (-88.42%)
Mutual labels:  camera

pypylon

The official python wrapper for the Basler pylon Camera Software Suite.

Please Note: This project is offered with no technical support by Basler AG. You are welcome to post any questions or issues on GitHub or on ImagingHub.

Build Status Build Status

Getting Started

  • Install pylon
    This is strongly recommended but not mandatory. See known issues for further details.
  • Install pypylon: pip3 install pypylon
    For more installation options and the supported systems please read the Installation paragraph.
  • Look at samples/grab.py or use the following snippet:
from pypylon import pylon

camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
camera.Open()

# demonstrate some feature access
new_width = camera.Width.GetValue() - camera.Width.GetInc()
if new_width >= camera.Width.GetMin():
    camera.Width.SetValue(new_width)

numberOfImagesToGrab = 100
camera.StartGrabbingMax(numberOfImagesToGrab)

while camera.IsGrabbing():
    grabResult = camera.RetrieveResult(5000, pylon.TimeoutHandling_ThrowException)

    if grabResult.GrabSucceeded():
        # Access the image data.
        print("SizeX: ", grabResult.Width)
        print("SizeY: ", grabResult.Height)
        img = grabResult.Array
        print("Gray value of first pixel: ", img[0, 0])

    grabResult.Release()
camera.Close()

Installation

Prerequisites

  • Installed pylon
    For the binary installation this is not mandatory but strongly recommended. See known issues for further details.
  • Installed python with pip

Binary Installation

The easiest way to get pypylon is to install a prebuild wheel. Binary releases for most architectures are available on pypi**. To install pypylon open your favourite terminal and run:

pip3 install pypylon

The following versions are available on pypi:

3.4 3.5 3.6 3.6 3.7 3.8 3.9
Windows 32bit x x x x x x x
Windows 64bit x x x x x x x
Linux i686** -* -* x x x x x
Linux x86_64** -* -* x x x x x
Linux armv7l** -* -* x x x x x
Linux aarch64** -* -* x x x x x
Mac OS*** - - x x x x x

Additional Notes on binary packages:

  • (*) The linux wheels for python 3.4 and 3.5 are not available on pypi.
    You can get them from Github Releases.
  • (**) The linux binaries are manylinux_2_24 conformant.
    This is roughly equivalent to a minimum glibc version >= 2.24.
    ⚠️ You need at least pip 20.3 to install them.
  • (***) MacOS binaries are built for macOS >= 10.14 (Mojave)

Installation from Source

Building the pypylon bindings is supported and tested on Windows and Linux.

You need a few more things to compile pypylon:

  • A compiler for your system (Visual Studio on Windows, gcc on linux)
  • Python development files (e.g. sudo apt install python-dev on linux)
  • swig >= 4.0

To build pypylon from source:

git clone https://github.com/basler/pypylon.git
cd pypylon
pip install .

Development

Pull requests to pypylon are very welcome. To help you getting started with pypylon improvements, here are some hints:

Starting Development

python setup.py develop

This will "link" the local pypylon source directory into your python installation. It will not package the pylon libraries and always use the installed pylon. After changing pypylon, execute python setup.py build and test...

Running Unit Tests

NOTE: The unit tests try to import pypylon...., so they run against the installed version of pypylon.

python -m unittest tests/....
python tests/....

Known Issues

  • For USB 3.0 cameras to work on Linux, you need to install appropriate udev rules. The easiest way to get them is to install the official pylon package.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].