Socket
Socket
Sign inDemoInstall

ids-peak-ipl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ids-peak-ipl

ids_peak_ipl - A library for image manipulation


Maintainers
1

ids_peak_ipl provides python bindings for the IDS peak IPL. It exposes all the functionality of the peak IPL.

Benefit from many Python advantages, for example the interactive programming of your IDS camera. Write and test small code snippets without the complex setup of a programming IDE including a toolchain. This package is ideal for prototyping IDS camera applications for all supported peak IPL platforms (Windows, Linux, Linux Embedded).

Installation

$ pip install ids_peak_ipl

Quickstart

Creating a peak IPL image from width and height:

width = 16
height = 16
image_from_size = ids_peak_ipl.Image.CreateFromSize(
    ids_peak_ipl.PixelFormatName_Mono8, width, height)

Creating a peak IPL image from a IDS peak genericAPI buffer manually:

NOTE: Using the BufferToImage function provided by the peak IPL extension in the IDS peak genericAPI package is strongly recommended. To ensure correct functionality when using auto features, BufferToImage must be utilized.

image_from_size_and_buffer = ids_peak_ipl.Image.CreateFromSizeAndBuffer(
    buffer.PixelFormat(),
    buffer.BasePtr(),
    buffer.Size(),
    buffer.Width(),
    buffer.Height()
)

Creating a peak IPL image from a numpy array:

import numpy as np

numpy_array = np.array([[10, 20, 30]], dtype=np.uint8)
image_from_size_and_python_buffer = ids_peak_ipl.Image.CreateFromSizeAndPythonBuffer(
    img.PixelFormatName_RGB8, numpy_array, width, height)

Creating a peak IPL image from a python bytearray:

byte_array = bytearray([255, 10, 128])
image_from_size_and_python_buffer = ids_peak_ipl.Image.CreateFromSizeAndPythonBuffer(
    img.PixelFormatName_RGB8, byte_array, width, height)

Documentation

Documentation is available here

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc