Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
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).
$ pip install ids_peak_ipl
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 is available here
FAQs
ids_peak_ipl - A library for image manipulation
We found that ids-peak-ipl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.