跳转到内容

Auto Function ROI#

相机的 Auto Function ROI 功能允许您指定要用传感器阵列的哪些部分控制相机自动功能

ROI 是 Region of Interest(即兴趣区的英文首字母缩写,以前为 AOI = 兴趣区)。

您可以创建多个自动功能 ROI,每个 ROI 占据传感器阵列的不同部分。

Auto Function ROI 功能的设置独立于 Image ROI 功能。

该功能的使用#

更改 Auto Function ROI 的位置和大小#

默认情况下,所有自动功能 ROI 的大小都设置为与相机图像 ROI 相同。您可以更改其位置和大小,以满足您的需求。

要更改自动功能 ROI 的位置和大小,请执行以下操作:

  1. AutoFunctionROISelector 参数设置为可用自动功能 ROI,例如 ROI1
  2. Enter values for the following parameters to specify the position of the auto function ROI selected:
    • AutoFunctionROIOffsetX
    • AutoFunctionROIOffsetY
  3. Enter values for the following parameters to specify the 图像 ROI 的 of the auto function ROI selected:
    • AutoFunctionROIWidth
    • AutoFunctionROIHeight

根据传感器阵列的线路和行指定自动功能 ROI 的位置。

示例:假设您选择了自动功能 ROI 1 并指定了以下设置:

  • AutoFunctionROIOffsetX = 14
  • AutoFunctionROIOffsetY = 7
  • AutoFunctionROIWidth = 5
  • AutoFunctionROIHeight = 6

将创建以下自动功能 ROI 1:

Auto Function ROI 和 Image ROI

分配给自动功能 ROI 的自动功能将仅使用自动功能 ROI 与图像 ROI 之间的重叠区域中的像素数据。

信息

  • 在彩色相机上,Basler 建议将位置和尺寸参数设置为偶数(2 的倍数)。这会将自动功能 ROI 与传感器的彩色滤光片图案相匹配。
  • 如果启用了 Binning 功能,自动功能 ROI 设置是指经过像素合并的行和列,而不是传感器中的物理线路。
  • 如果启用了 Reverse X 和/或 Reverse Y 功能,则自动功能 ROI 相对于传感器的位置保持不变。所得到图像的不同区域将根据是否启用了 Reverse X 和/或 Reverse Y 来进行控制。

Auto Function ROI高亮显示#

如果您的相机型号支持突出显示,则可以在pylonViewer 中高亮显示相机中的一个或多个自动功能ROI。 不属于自动功能ROI的区域会偏暗一些:

样图:Auto Function ROI 突出显示

要突出显示 Auto Function ROI,请执行以下操作:

  1. AutoFunctionROISelector 参数设置为所需的 auto function ROI,例如 ROI1
  2. AutoFunctionROIHighlight 参数设置为 true

分配 Auto Functions#

默认情况下,每个自动功能 ROI 都分配给一个特定的自动功能。例如,来自自动功能 ROI 2 的像素数据用于控制自动功能 Balance White Auto

部分相机机型上,可以更改默认分配。为此:

AutoFunctionROISelector 参数设置为可用自动功能 ROI,例如 ROI1

将所需的自动功能分配给所选的自动功能 ROI:

信息

  • 如果您将一个自动功能分配给多个自动功能 ROI,则来自所有选定自动功能 ROI 的像素数据将用于此自动功能。
  • 如果您将多个自动功能分配给一个自动功能 ROI,则来自该自动功能 ROI 的像素数据将用于所有选定的自动功能。

Exposure Auto 和 Gain Auto 一起发挥作用#

进行自动功能 ROI 分配时,Gain Auto自动曝光这两项自动功能始终协同工作。根据您的相机型号,它们会被自动视为名为“强度”或“亮度”的自动功能。

但是,这并不意味着 Gain Auto 和 Exposure Auto 必须始终同时启用。

指导准则#

设置自动功能 ROI 时,必须遵循以下准则:

指导准则 示例
AutoFunctionROIOffsetX + AutoFunctionROIWidth ≤ 相机传感器宽度 具有 1920 x 1080 像素的传感器:
AutoFunctionROIOffsetX + AutoFunctionROIWidth ≤ 1920
AutoFunctionROIOffsetY + AutoFunctionROIHeight ≤ 相机传感器高度 具有 1920 x 1080 像素传感器的相机:
AutoFunctionROIOffsetY + AutoFunctionROIHeight ≤ 1080

Auto Function ROI 和 Image ROI 之间的重叠#

自动功能 ROI 的大小和位置可以与图像 ROI 的大小和位置相同,但这并非必要条件。要使自动功能正常工作,只需要两个 ROI 彼此部分重叠。

自动功能 ROI 和图像 ROI 之间的重叠部分决定了自动功能能否控制相关图像属性,以及能在何种程度上控制相关图像属性。自动功能将仅使用重叠区域中的像素数据来控制整个图像的图像属性。

  • 如果自动功能 ROI 完全包含在图像 ROI 中,来自自动功能 ROI 的像素数据将用于控制图像属性。

    Auto Function ROI 完全包含在 Image ROI 中

  • 如果图像 ROI 完全包含在自动功能 ROI 中,仅来自图像 ROI 的像素数据将用于控制图像属性。

    Image ROI 完全包含在 Auto Function ROI 中

  • 如果自动功能 ROI 仅与图像 ROI 部分重叠,只有部分重叠区域的像素数据将用于控制图像属性。

    Auto Function ROI 和 Image ROI 部分重叠

  • 如果自动功能 ROI 与图像 ROI 无重叠,相关自动功能将无法正常工作

    Auto Function ROI 与 Image ROI 无重叠

信息

Basler 强烈建议将自动功能 ROI 完全包括在图像 ROI 中,或者为自动功能 ROI 和图像 ROI 选择相同的位置和大小。

详情#

显示所有相机型号

相机型号 Auto Function ROI 默认分配 分配可以更改 支持突出显示
a2A1920-51gcBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A1920-51gcPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A1920-51gmBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A1920-51gmPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A1920-160ucBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A1920-160ucPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A1920-160umBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A1920-160umPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A2590-22gcBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A2590-22gcPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A2590-22gmBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A2590-22gmPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A2590-60ucBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A2590-60ucPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A2590-60umBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A2590-60umPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A3840-13gcBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A3840-13gcPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A3840-13gmBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A3840-13gmPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A3840-45ucBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A3840-45ucPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
a2A3840-45umBAS ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
a2A3840-45umPRO ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
acA640-90gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-90gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-90uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA640-90um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA640-120gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-120gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-120uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA640-120um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA640-121gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-300gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-300gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA640-750uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA640-750um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA720-290gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA720-290gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA720-520uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA720-520um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA780-75gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA780-75gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA800-200gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA800-200gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA800-510uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA800-510um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1280-60gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1280-60gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-22gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-22gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-30gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-30gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-30uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1300-30um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1300-60gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-60gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-60gmNIR ROI 1
ROI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-75gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-75gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1300-200uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1300-200um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1440-73gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1440-73gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1440-220uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1440-220um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1600-20gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1600-20gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1600-20uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1600-20um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1600-60gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1600-60gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-25gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-25gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-25uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-25um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-40gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-40gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-40uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-40ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA1920-40um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-40umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA1920-48gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-48gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-50gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-50gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA1920-150uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-150um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-155uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-155ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA1920-155um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA1920-155umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2000-50gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2000-50gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2000-50gmNIR ROI 1
ROI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2000-165uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2000-165um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2000-165umNIR ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-25gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2040-25gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2040-25gmNIR ROI 1
ROI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2040-35gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2040-35gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2040-55uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-55um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-90uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-90um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-90umNIR ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-120uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2040-120um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2440-20gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2440-20gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2440-35uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2440-35ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2440-35um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2440-35umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2440-75uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2440-75ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2440-75um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2440-75umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2500-14gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2500-14gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2500-14uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2500-14um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2500-20gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2500-20gcMED AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2500-20gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA2500-20gmMED AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA2500-60uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA2500-60um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA3088-16gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA3088-16gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA3088-57uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA3088-57um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA3800-10gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA3800-10gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA3800-14uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA3800-14um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4024-8gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4024-8gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4024-29uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4024-29um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4096-11gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4096-11gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4096-30uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4096-30ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4096-30um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4096-30umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4096-40uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4096-40ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4096-40um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4096-40umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4112-8gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4112-8gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4112-20uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4112-20ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4112-20um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4112-20umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4112-30uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4112-30ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4112-30um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA4112-30umMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA4600-7gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA4600-10uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA5472-5gc AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA5472-5gm AOI 1
AOI 2
AOI 1:强度 (Gain Auto + Exposure Auto)
AOI 2:White Balance (Balance White Auto)
acA5472-17uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
acA5472-17ucMED ROI 1
ROI 2
ROI 1:强度 (Gain Auto + Exposure Auto)
OI 2:White Balance (Balance White Auto),Tonal Range (Tonal Range Auto)
acA5472-17um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
boA4096-93cc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
boA4096-93cm ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
boA4112-68cc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
boA4112-68cm ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:亮度 (Gain Auto + Exposure Auto)
daA1280-54lc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1280-54lm ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1280-54uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1280-54um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1600-60lc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1600-60lm ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1600-60uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1600-60um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1920-15um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1920-30uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA1920-30um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA2500-14lc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA2500-14lm ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA2500-14uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA2500-14um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
daA2500-60mc 不支持 Auto Function ROI 功能 不支持 Auto Function ROI 功能
daA2500-60mci 不支持 Auto Function ROI 功能 不支持 Auto Function ROI 功能
daA4200-30mci 不支持 Auto Function ROI 功能 不支持 Auto Function ROI 功能
puA1280-54uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA1280-54um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA1600-60uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA1600-60um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA1920-30uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA1920-30um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA2500-14uc ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)
puA2500-14um ROI 1
ROI 2
ROI 1:亮度 (Gain Auto + Exposure Auto)
ROI 2:White Balance (Balance White Auto)

示例代码#

ace 2 和 boost 相机#

// Select auto function ROI 1
camera.AutoFunctionROISelector.SetValue(AutoFunctionROISelector_ROI1);
// Specify position and size of the auto function ROI selected
camera.AutoFunctionROIOffsetX.SetValue(10);
camera.AutoFunctionROIOffsetY.SetValue(10);
camera.AutoFunctionROIWidth.SetValue(500);
camera.AutoFunctionROIHeight.SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
camera.AutoFunctionROIUseWhiteBalance.SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
camera.AutoFunctionROIUseBrightness.SetValue(true);
// Highlight the auto function ROI selected
camera.AutoFunctionROIHighlight.SetValue(true);
INodeMap& nodemap = camera.GetNodeMap();
// Select auto function ROI 1
CEnumerationPtr(nodemap.GetNode("AutoFunctionROISelector"))->FromString("ROI1");
// Specify position and size of the auto function ROI selected
CIntegerPtr(nodemap.GetNode("AutoFunctionROIOffsetX"))->SetValue(10);
CIntegerPtr(nodemap.GetNode("AutoFunctionROIOffsetY"))->SetValue(10);
CIntegerPtr(nodemap.GetNode("AutoFunctionROIWidth"))->SetValue(500);
CIntegerPtr(nodemap.GetNode("AutoFunctionROIHeight"))->SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionROIUseWhiteBalance"))->SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionROIUseBrightness"))->SetValue(true);
// Highlight the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionROIHighlight"))->SetValue(true);
INodeMap& nodemap = camera.GetNodeMap();
// Select auto function ROI 1
CEnumParameter(nodemap, "AutoFunctionROISelector").SetValue("ROI1");
// Specify position and size of the auto function ROI selected
CIntegerParameter(nodemap, "AutoFunctionROIOffsetX").SetValue(10);
CIntegerParameter(nodemap, "AutoFunctionROIOffsetY").SetValue(10);
CIntegerParameter(nodemap, "AutoFunctionROIWidth").SetValue(500);
CIntegerParameter(nodemap, "AutoFunctionROIHeight").SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionROIUseWhiteBalance").SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionROIUseBrightness").SetValue(true);
// Highlight the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionROIHighlight").SetValue(true);
// Select auto function ROI 1
camera.Parameters[PLCamera.AutoFunctionROISelector].SetValue(PLCamera.AutoFunctionROISelector.ROI1);
// Specify position and size of the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIOffsetX].SetValue(10);
camera.Parameters[PLCamera.AutoFunctionROIOffsetY].SetValue(10);
camera.Parameters[PLCamera.AutoFunctionROIWidth].SetValue(500);
camera.Parameters[PLCamera.AutoFunctionROIHeight].SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIUseWhiteBalance].SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIUseBrightness].SetValue(true);
// Highlight the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIHighlight].SetValue(true);
// Select auto function ROI 1
Pylon.DeviceFeatureFromString(hdev, "AutoFunctionROISelector", "ROI1");
// Specify position and size of the auto function ROI selected
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetX", 10);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetY", 10);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIWidth", 500);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIHeight", 400);
// Enable Balance White Auto for the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionROIUseWhiteBalance", true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionROIUseBrightness", true);
// Highlight the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionROIHighlight", true);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Select auto function ROI 1 */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionROISelector", "ROI1");
CHECK(errRes);
/* Specify position and size of the auto function ROI selected */
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetX", 10);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetY", 10);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIWidth", 500);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIHeight", 400);
CHECK(errRes);
/* Enable Balance White Auto for the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionROIUseWhiteBalance", 1);
CHECK(errRes);
/* Enable the 'Brightness' auto function (Gain Auto + Exposure Auto) */
/* for the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionROIUseBrightness", 1);
CHECK(errRes);
/* Highlight the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionROIHighlight", 1);
CHECK(errRes);

ace classic/U/L GigE 相机#

// Select auto function AOI 1
camera.AutoFunctionAOISelector.SetValue(AutoFunctionAOISelector_AOI1);
// Specify position and size of the auto function ROI selected
camera.AutoFunctionAOIOffsetX.SetValue(10);
camera.AutoFunctionAOIOffsetY.SetValue(10);
camera.AutoFunctionAOIWidth.SetValue(500);
camera.AutoFunctionAOIHeight.SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
camera.AutoFunctionAOIUsageWhiteBalance.SetValue(true);
// Enable the 'Intensity' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
camera.AutoFunctionAOIUsageIntensity.SetValue(true);
INodeMap& nodemap = camera.GetNodeMap();
// Select auto function AOI 1
CEnumerationPtr(nodemap.GetNode("AutoFunctionAOISelector"))->FromString("AOI1");
// Specify position and size of the auto function ROI selected
CIntegerPtr(nodemap.GetNode("AutoFunctionAOIOffsetX"))->SetValue(10);
CIntegerPtr(nodemap.GetNode("AutoFunctionAOIOffsetY"))->SetValue(10);
CIntegerPtr(nodemap.GetNode("AutoFunctionAOIWidth"))->SetValue(500);
CIntegerPtr(nodemap.GetNode("AutoFunctionAOIHeight"))->SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionAOIUsageWhiteBalance"))->SetValue(true);
// Enable the 'Intensity' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionAOIUsageIntensity"))->SetValue(true);
INodeMap& nodemap = camera.GetNodeMap();
// Select auto function AOI 1
CEnumParameter(nodemap, "AutoFunctionAOISelector").SetValue("AOI1");
// Specify position and size of the auto function ROI selected
CIntegerParameter(nodemap, "AutoFunctionAOIOffsetX").SetValue(10);
CIntegerParameter(nodemap, "AutoFunctionAOIOffsetY").SetValue(10);
CIntegerParameter(nodemap, "AutoFunctionAOIWidth").SetValue(500);
CIntegerParameter(nodemap, "AutoFunctionAOIHeight").SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionAOIUsageWhiteBalance").SetValue(true);
// Enable the 'Intensity' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionAOIUsageIntensity").SetValue(true);
// Select auto function AOI 1
camera.Parameters[PLCamera.AutoFunctionAOISelector].SetValue(PLCamera.AutoFunctionAOISelector.AOI1);
// Specify position and size of the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionAOIOffsetX].SetValue(10);
camera.Parameters[PLCamera.AutoFunctionAOIOffsetY].SetValue(10);
camera.Parameters[PLCamera.AutoFunctionAOIWidth].SetValue(500);
camera.Parameters[PLCamera.AutoFunctionAOIHeight].SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionAOIUsageWhiteBalance].SetValue(true);
// Enable the 'Intensity' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionAOIUsageIntensity].SetValue(true);
// Select auto function AOI 1
Pylon.DeviceFeatureFromString(hdev, "AutoFunctionAOISelector", "AOI1");
// Specify position and size of the auto function ROI selected
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionAOIOffsetX", 10);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionAOIOffsetY", 10);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionAOIWidth", 500);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionAOIHeight", 400);
// Enable Balance White Auto for the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionAOIUsageWhiteBalance", true);
// Enable the 'Intensity' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionAOIUsageIntensity", true);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Select auto function AOI 1 */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionAOISelector", "AOI1");
CHECK(errRes);
/* Specify position and size of the auto function ROI selected */
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionAOIOffsetX", 10);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionAOIOffsetY", 10);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionAOIWidth", 500);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionAOIHeight", 400);
CHECK(errRes);
/* Enable Balance White Auto for the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionAOIUsageWhiteBalance", 1);
CHECK(errRes);
/* Enable the 'Intensity' auto function (Gain Auto + Exposure Auto) */
/* for the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionAOIUsageIntensity", 1);
CHECK(errRes);

其他相机#

// Select auto function ROI 1
camera.AutoFunctionROISelector.SetValue(AutoFunctionROISelector_ROI1);
// Specify position and size of the auto function ROI selected
camera.AutoFunctionROIOffsetX.SetValue(10);
camera.AutoFunctionROIOffsetY.SetValue(10);
camera.AutoFunctionROIWidth.SetValue(500);
camera.AutoFunctionROIHeight.SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
camera.AutoFunctionROIUseWhiteBalance.SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
camera.AutoFunctionROIUseBrightness.SetValue(true);
INodeMap& nodemap = camera.GetNodeMap();
// Select auto function ROI 1
CEnumerationPtr(nodemap.GetNode("AutoFunctionROISelector"))->FromString("ROI1");
// Specify position and size of the auto function ROI selected
CIntegerPtr(nodemap.GetNode("AutoFunctionROIOffsetX"))->SetValue(10);
CIntegerPtr(nodemap.GetNode("AutoFunctionROIOffsetY"))->SetValue(10);
CIntegerPtr(nodemap.GetNode("AutoFunctionROIWidth"))->SetValue(500);
CIntegerPtr(nodemap.GetNode("AutoFunctionROIHeight"))->SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionROIUseWhiteBalance"))->SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
CBooleanPtr(nodemap.GetNode("AutoFunctionROIUseBrightness"))->SetValue(true);
INodeMap& nodemap = camera.GetNodeMap();
// Select auto function ROI 1
CEnumParameter(nodemap, "AutoFunctionROISelector").SetValue("ROI1");
// Specify position and size of the auto function ROI selected
CIntegerParameter(nodemap, "AutoFunctionROIOffsetX").SetValue(10);
CIntegerParameter(nodemap, "AutoFunctionROIOffsetY").SetValue(10);
CIntegerParameter(nodemap, "AutoFunctionROIWidth").SetValue(500);
CIntegerParameter(nodemap, "AutoFunctionROIHeight").SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionROIUseWhiteBalance").SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
CBooleanParameter(nodemap, "AutoFunctionROIUseBrightness").SetValue(true);
// Select auto function ROI 1
camera.Parameters[PLCamera.AutoFunctionROISelector].SetValue(PLCamera.AutoFunctionROISelector.ROI1);
// Specify position and size of the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIOffsetX].SetValue(10);
camera.Parameters[PLCamera.AutoFunctionROIOffsetY].SetValue(10);
camera.Parameters[PLCamera.AutoFunctionROIWidth].SetValue(500);
camera.Parameters[PLCamera.AutoFunctionROIHeight].SetValue(400);
// Enable Balance White Auto for the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIUseWhiteBalance].SetValue(true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
camera.Parameters[PLCamera.AutoFunctionROIUseBrightness].SetValue(true);
// Select auto function ROI 1
Pylon.DeviceFeatureFromString(hdev, "AutoFunctionROISelector", "ROI1");
// Specify position and size of the auto function ROI selected
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetX", 10);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetY", 10);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIWidth", 500);
Pylon.DeviceSetIntegerFeature(hdev, "AutoFunctionROIHeight", 400);
// Enable Balance White Auto for the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionROIUseWhiteBalance", true);
// Enable the 'Brightness' auto function (Gain Auto + Exposure Auto)
// for the auto function ROI selected
Pylon.DeviceSetBooleanFeature(hdev, "AutoFunctionROIUseBrightness", true);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Select auto function ROI 1 */
errRes = PylonDeviceFeatureFromString(hdev, "AutoFunctionROISelector", "ROI1");
CHECK(errRes);
/* Specify position and size of the auto function ROI selected */
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetX", 10);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIOffsetY", 10);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIWidth", 500);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "AutoFunctionROIHeight", 400);
CHECK(errRes);
/* Enable Balance White Auto for the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionROIUseWhiteBalance", 1);
CHECK(errRes);
/* Enable the 'Brightness' auto function (Gain Auto + Exposure Auto) */
/* for the auto function ROI selected */
errRes = PylonDeviceSetBooleanFeature(hdev, "AutoFunctionROIUseBrightness", 1);
CHECK(errRes);

您也可以使用 pylon Viewer 轻松设置参数。