Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Microservice for OpenDLV to interface with GiGE cameras supported by the pylon library (eg., Basler cameras)

License

Notifications You must be signed in to change notification settings

chalmers-revere/opendlv-device-camera-pylon

Repository files navigation

Moved to https://git.opendlv.org

OpenDLV Microservice to interface with pylon-supported cameras (e.g., Basler GiGE cameras)

This repository provides source code to interface pylon-supported cameras for the OpenDLV software ecosystem. This microservice provides the captured frames in two separate shared memory areas, one for a picture in I420 format and one in ARGB format.

License: GPLv3

Table of Contents

Dependencies

You need a C++14-compliant compiler to compile this project. The following dependency is shipped as part of the source distribution:

Building and Usage

Currently, we do not provide and distribute pre-built Docker images but we provide the build instructions in Dockerfile.amd64 for x86_64 platforms, Dockerfile.armhf for armhf platforms, and Dockerfile.aarch64 for aarch64 platforms that can be easily integrated in a docker-compose.yml file.

To run this microservice using docker-compose, you can simply add the following section to your docker-compose.yml file to let Docker build this software for you:

version: '2' # Must be present exactly once at the beginning of the docker-compose.yml file
services:    # Must be present exactly once at the beginning of the docker-compose.yml file
    device-camera-pylon-amd64:
        build:
            context: https://github.com/chalmers-revere/opendlv-device-camera-pylon.git#v0.0.3
            dockerfile: Dockerfile.amd64
        restart: on-failure
        ipc: "host"
        volumes:
        - /tmp:/tmp
        command: "--camera=22604270 --width=640 --height=480"

The parameters to the application are:

  • --camera=ID: Serial number for pylon-compatible camera to be used
  • --name.i420=XYZ: Name of the shared memory for the I420 formatted image; when omitted, cam0.i420 is chosen
  • --name.argb=XYZ: Name of the shared memory for the ARGB formatted image; when omitted, cam0.argb is chosen
  • --skip.argb: Don't decode into ARGB
  • --width=W: Desired width of a frame
  • --height=H: Desired height of a frame
  • --offsetX: X for desired ROI (default: 0)
  • --offsetY: Y for desired ROI (default: 0)
  • --packetsize: If supported by the adapter (eg., jumbo frames), use this packetsize (default: 1500)
  • --verbose: Display captured imageA
  • --info: Display information about capturing
  • --autoexposuretimeabslowerlimit: Set auto exposure time lower limit; default: 26
  • --autoexposuretimeabsupperlimit: Set auto exposure time upper limit; default: 50000

License

  • This project is released under the terms of the GNU GPLv3 License

About

Microservice for OpenDLV to interface with GiGE cameras supported by the pylon library (eg., Basler cameras)

Resources

License

Stars

Watchers

Forks

Packages

No packages published