Skip to content

Instantly share code, notes, and snippets.

@wolkenarchitekt
Created March 27, 2025 12:48
Show Gist options
  • Save wolkenarchitekt/4d49c05c9d3f1e06829230c8460b8382 to your computer and use it in GitHub Desktop.
Save wolkenarchitekt/4d49c05c9d3f1e06829230c8460b8382 to your computer and use it in GitHub Desktop.
Arena SDK Python - Pixel Format
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