Created
March 27, 2025 12:48
-
-
Save wolkenarchitekt/4d49c05c9d3f1e06829230c8460b8382 to your computer and use it in GitHub Desktop.
Arena SDK Python - Pixel Format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from arena_api.enums import PixelFormat | |
from arena_api.system import system as arena_api_system | |
devices = arena_api_system.create_device() | |
device = arena_api_system.select_device(devices) | |
nodemap = device.nodemap | |
tl_stream_nodemap = device.tl_stream_nodemap | |
nodemap["AcquisitionMode"].value = "Continuous" | |
nodemap["AcquisitionFrameRateEnable"].value = True | |
# 35 FPS | |
nodemap["PixelFormat"].value = PixelFormat.BayerRG8 | |
print(f"AcquisitionFrameRate: {device.nodemap['AcquisitionFrameRate'].value}") | |
# 17 FPS | |
nodemap["PixelFormat"].value = PixelFormat.RGB8 | |
print(f"AcquisitionFrameRate: {device.nodemap['AcquisitionFrameRate'].value}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment