Skip to content

Switching camera types#

The camera type is configured using the ProcessorStrategy parameter, which is written to the Windows Registry as:

ProcessorStrategy (REG_SZ) = IntelRealSense | VLSLunaCamera3D | VLSLunaCamera2D

Quick start: Launch commands#

To configure and launch the service with a specific camera type, run one of the following commands from the script directory:

:: Intel RealSense (by default)
installService.bat ProcessorStrategy=IntelRealSense

:: VL SLuna 3D
installService.bat ProcessorStrategy=VLSLunaCamera3D

:: VL SLuna 2D
installService.bat ProcessorStrategy=VLSLunaCamera2D

You can also run the script without any parameters — it will use the default strategy:

installService.bat

In this case, the default parameter will be used: ProcessorStrategy=IntelRealSense.

Changing the default camera#

To change the default camera type:

1․ Open installService.bat in a text editor. 2․ Locate the line:

set ProcessorStrategy=IntelRealSense

3․ Replace IntelRealSense with your preferred default:
- IntelRealSense - VLSLunaCamera3D - VLSLunaCamera2D

Tip: You can also enable extended message display mode when running the script:

installService.bat ProcessorStrategy=VLSLunaCamera2D quietReg=false

By default, quietReg is set to true. If you need to change this behavior, edit line number 10 (set quietReg=true).

Configuration differences#

The installation script writes a core set of registry keys for all strategies, plus strategy-specific settings.

Common settings#

These keys are written regardless of camera type if ROI (Region of Interest) is enabled:

RoiEnable (REG_DWORD) 1
RoiX (REG_DWORD) 160
RoiY (REG_DWORD) 0
RoiWidth (REG_DWORD) 320
RoiHeight (REG_DWORD) 480

IntelRealSense-specific settings#

Additional keys for Intel RealSense cameras:

IRStreamDarknessCheck     (REG_DWORD) = 0
LivenessDepthOSL          (REG_DWORD) = 1
LivenessDepthOSLThreshold (REG_DWORD) = 70
RgbIrMatch                (REG_DWORD) = 0
RgbIRMatchThreshold       (REG_DWORD) = 120
RGBCoordinatesTransfer    (REG_DWORD) = 1
IOULivenessThreshold      (REG_DWORD) = 50

VLSLunaCamera3D-specific settings#

Only the general ROI settings are applied; no additional keys are specified.

VLSLunaCamera2D-specific settings#

One additional key:

FrameRotation (REG_DWORD) 0