# Configuring Daheng Cameras

From November 2023 VIOSO Calibration Kits are based on Daheng Imaging camera bodies. They are easier available and can be delivered worldwide. Each kit comes with the camera body, a suitable lens, and a PoE-Injector for running the camera on any switch or directly from the PC/server.

## Overview about Calibration kits based on Daheng cameras: <a href="#id-139424689-07f4am" id="id-139424689-07f4am"></a>

| Calibration Kit                                     | Description                                                                                       | Sensor size                       | Resolution                                       | Framerate                        | Lens                                                                                                                  | Multicam-ready |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------- | --------------------------------- | ------------------------------------------------ | -------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------- |
| <p>CK\_W56-4<br>CK\_W76-4<br>CK\_W89-4</p>          | Wideangle calibration kit                                                                         | 1/1.8”                            | 3088 x 2048                                      | 18 fps                           | <p>56,8° x 44,0°<br>76,0° x 60,8°<br>89,0° x 73,8°</p>                                                                | Yes            |
| CK\_QXX-4                                           | HQ Calibration kit                                                                                | 1.1”                              | 4096 x 3000                                      | 9 fps                            | <p>16,10° x 12,10°<br>22,10° x 16,70°<br>31,50° x 23,90°<br>48,20° x 36,70°<br>60,00° x 46,90°<br>79,20° x 63,80°</p> | Yes            |
| CK\_WQ95-4                                          | HQ Wideangle kit                                                                                  | 1.1”                              | 4096 x 3000                                      | 9 fps                            | 95,70° x 78,70°                                                                                                       | Yes            |
| <p>CK\_WU120-4<br>CK\_WU135-4</p>                   | Ultra Wideangle calibration kit                                                                   | 1/2.5”                            | 2592 x 1944                                      | 23 fps                           | <p>135,0° x 119,0°<br>110,0° x 94,0°</p>                                                                              | No             |
| <p>CK\_T29-4<br>CK\_T44-4</p>                       | Tele calibration kit                                                                              | 1/1.8”                            | 3072 x 2048                                      |                                  | <p>28,9° x 21,9°<br>44,7° x 33,9°</p>                                                                                 | No             |
| <p>CK\_FDN-4<br>CK\_FDN-4b<br>CK\_FDQ-4</p>         | <p>Fisheye calibration kit<br>Fisheye calibration kit 1” sensor<br>HQ Fisheye calibration kit</p> | <p>2/3”<br>1”<br>1”</p>           | <p>2448 x 2048<br>2592 x 2048<br>4508 x 4096</p> | <p>23 fps<br>20 fps<br>6 fps</p> | 365,00° x 185,00°                                                                                                     | No             |
| <p>CK\_FDY220-4<br>CK\_FDY250-4<br>CK\_FDY280-4</p> | Hyperfisheye calibration kit                                                                      | <p>1/1.7”<br>1/1.7”<br>1/2.3”</p> | <p>4024 x 3036<br>4024 x 3036<br>3840×2748</p>   | <p>9 pfs<br>9 fps<br>10 fps</p>  | <p>365,00° x 220,00°<br>365,00° x 250,00°<br>365,00° x 280,00°</p>                                                    | No             |

{% hint style="info" %}
Use our Calibration Kit Finder to select the appropriate camera based on screen dimensions and camera distance:\
<https://vioso.com/calibration-kit-finder/>
{% endhint %}

## Installing

### 1. Connecting the camera

Mount the camera and connect camera to PoE injector and the PoE injector to the network and power.

![](https://helpdesk.vioso.com/wp-content/uploads/2020/03/IDScamera-connect.png)

**(a) PoE (Power Over Ethernet)/DATA:**\
Connect the camera to this socket (this will power the camera and a small light will flicker).

**(b) DATA:**\
Connect the Ethernet cable to the PC/server or to a switch.

{% hint style="info" %}
The camera requires a stable 1Gb/s ethernet connection. 100MB/s won’t work!
{% endhint %}

{% hint style="info" %}
We strongly recommend running the camera directly to the PC. Therefore, VIOSO servers usually come with 2 dedicated Ethernet ports. Please note that during calibration the camera creates a large amount of data, occupying the whole network bandwidth and therefore should not be shared with other network based applications (e.g. remote access).
{% endhint %}

### 2. Installing the driver package “Galaxy DSK 2” <a href="#id-922499697-r6m3wf" id="id-922499697-r6m3wf"></a>

1. Download: [Galaxy\_Windows\_EN\_32bits-64bits\_2.0.2309.9181.exe](https://download.vioso.com/drivers/daheng/Galaxy_Windows_EN_32bits-64bits_2.0.2309.9181.exe)
2. Install driver:\
   ![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng01.png)
   * Check GigE Vision
   * Check DirectShow
   * Check Enable Jumbo Frames
3. Reboot the system.

### 3. Network configuration <a href="#id-1281160940-ojis78" id="id-1281160940-ojis78"></a>

1. Make sure that the camera is connected and powered (PowerLED “blue”)
2. Run the application “GxGigEIPConfig”.\
   ![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng02.png)
   * If the camera is connected, it shows within the “GigE” tree under the network adapter.
   * If the network adapter is not active, the camera gets an address starting with “169.254…”. In this case it is required to reconfigure the network interface to a static IP. Right-Click the network adaptor and select “Network card configuration tool”:\
     ![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng03a.png)
   * Click the Button “Netcard Protocol Property” to access the Windows network settings. Change to static IP setting and enter an appropriate IP (e.g. 10.0.0.1 / 255.0.0.0 for a point-to-point connection). If the network already is set to a fixed IP, you can skip this step.\
     ![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng03b.png)\
     Terminate everything with “OK” and “Apply”.
   * The camera can be configured by clicking “Auto Configure IP”.\
     ![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng03-1.png)
   * After this, the camera gets a fixed IP and is marked as available.
   * Optional:\
     Right-Click on the camera name and open the “Modify IP Address” dialog. Enter an IP of your choice that fits to the IP range entered for this ethernet connection (e.g. 10.0.0.12 according to the example above). You also can change the device name of the camera.\
     ![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng05.png)
   * This way the camera has a fixed IP, that will make all subsequent tasks for calibration more transparent.

## Camera Configuration

All settings of the camera can be done in the “Galaxy Viewer” software.\
![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng06.png)\
It is a complex tool, allowing a lot of settings to be made. But we recommend to stick to some very fundamental settings only, leaving as much as possible untreated. All settings that are done by the Galaxy software are temporary, unless you save them as a user set (see below).

Once the camera network configuration is complete, the camera icon gets green (1), indicating that the camera is ready to be operated. Launch the preview by double clicking the camera (1) and press the “Play” Button (2) in the top button bar to display a live camera image.

<figure><img src="https://3901153090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQOJaA9kiXUCmPo5Lma3%2Fuploads%2FLBrN7o6O2qg6Rd05YBly%2Fimage.png?alt=media&#x26;token=af607ed9-1335-4e5a-88d8-2088cfa26d8e" alt=""><figcaption></figcaption></figure>

Now it’s time to switch off all ambient light sources and have the projectors powered on. Use the live view to position the cameras while filming the projection surface. The projectors should display a solid color (ideally white) so that the camera can be set to an appropriate sensitivity.

### Common parameters <a href="#id-562035557-gdqqmg" id="id-562035557-gdqqmg"></a>

Switch to the tab “Common Functions” (3) to handle the most important parameters of the camera sensor:

![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng09a.png)

* **Exposure mode:** Timed
* **Exposure Auto:** always set to OFF!\
  **Exposure time:** Set to a value that matches with the brightness of the filmed scene. By setting the exposure, the framerate automatically adapts accordingly. Please evaluate the exposure when projectors are displaying bright content, filling all the projection area.
* **Gain:** Set to 0.000 (dB)\
  if the camera image is too dark, you can carefully increase the gain. Try to maintain a high contrast when setting a user defined gamma value.
* **GainAuto:** always set to OFF!

### Analog Control <a href="#id-1016866599-0r12gl" id="id-1016866599-0r12gl"></a>

In good conditions, where the camera get sufficient light, there is no need to make any changes, but in challenging environments, the analog control parameters of the camera can help to increase the sensitivity of the sensor. We recommend to leave these parameters unchanged as long as possible. If optimizations are required, start changing the **Blacklevel** parameters, then the **Gamma** parameters and use the **Gain** parameter only as a last resort.

Select the “Device” Tab and expand “Analog Control”:

![](https://helpdesk.vioso.com/wp-content/uploads/2023/11/Daheng09b.png)

* **Gain:** if the camera image is too dark, you can carefully increase the gain. Try to maintain a high contrast when setting a user defined gamma value.
* **GainAuto:** always set to OFF!  Therefore, the values AutoGain are not used
* **GammaEnable:** this will enable the camera sensor gamma behaviour which results in a different sensitivity. Enable only if it is really hard to get a proper projector pattern detection and choose **GammaMode=SRGB**
* **Gamma:** Once enabled you can set the gamma value here.
* **Blacklevel:** This is a good parameter to have the projector patterns displayed properly while “hiding” darker parts. Start optimizing the camera behaviour by changing this value first, before trying Gain or Gamma.

### Image cropping for Fisheye calibration kits <a href="#id-1232137935-8r8qnt" id="id-1232137935-8r8qnt"></a>

fisheye lenses produce a sqare image, but the sensors aren’t square. For the use of 3D features in VIOSO (“MRD”), it is important to set the camera to a square pixel resolution. Therefore, a custom resolution based on the sensor height resolution should be set according to the sensor height resolution and with an offset to match the lens at the center.

1. To change the sensor resolution, STOP the current camera stream (1)
2. Set the parameters “Width” and “OffsetX” to get a square resolution, centered on the sensor (2) – see table below:<br>

   <figure><img src="https://3901153090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQOJaA9kiXUCmPo5Lma3%2Fuploads%2F7TjVQeeN2nAnxlpyJYvF%2Fimage.png?alt=media&#x26;token=6eca7b03-c7d9-431c-9711-a263b3f1494b" alt=""><figcaption></figcaption></figure>

Parameters:

| Calibration kit                                | sensor resolution | Height | Width | OffsetX | OffsetY | resulting resolution |
| ---------------------------------------------- | ----------------- | ------ | ----- | ------- | ------- | -------------------- |
| CK\_FDN-4 Fisheye calibration kit              | 2448 x 2048       | 2048   | 2048  | 200     | 0       | 2048 x 2048          |
| CK\_FDN-4b Fisheye calibration kit             | 2592 x 2048       | 2048   | 2048  | 272     | 0       | 2048 x 2048          |
| CK\_FDQ-4 HQ Fisheye calibration kit           | 4508 x 4096       | 4096   | 4096  | 208\*   | 0       | 4096 x 4096          |
| CK\_FDY250-4 250° Hyperfisheye calibration kit | 4024 x 3036       | 3036   | 4024  | 496\*   | 0       | 3036 x 3036          |
| CK\_FDY280-4 250° Hyperfisheye calibration kit | 3840 x 2748       | 2748   | 2748  | 548\*   | 0       | 2748 x 2748          |

\*) due to limits of the firmware, the value must be a multiple of 4, therefore it’s adjusted

Start the camera stream again (1) and the sensor resolution has changed

### User settings <a href="#id-1901616205-nzii4x" id="id-1901616205-nzii4x"></a>

All settings made in the Galaxy software stored on the local PC, but not inside the camera. To have the configuration persistent, the camera provides a “UserSet” storage slot.

To store the current configuration, Stop the current playback and access the “User Set Settings” Dropdown from the Device Tab:<br>

<figure><img src="https://3901153090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQOJaA9kiXUCmPo5Lma3%2Fuploads%2FmF0ZminFICM2GOr8j856%2Fimage.png?alt=media&#x26;token=4517f39b-9a0e-4a90-816d-5f9fce9f11f0" alt=""><figcaption></figcaption></figure>

Select “Save as UserSet0 and Set as Default” to have the current settings stored and used whenever the camera is used.

## **Troubleshooting**

### **Camera not showing in the Galaxy driver and IP configurator tool** <a href="#id-1631807291-fr66u4" id="id-1631807291-fr66u4"></a>

First make sure it is plugged correctly. Try connecting it directly from the PoE switch to the PC network adapter to exclude all external LAN issues.

If the camera is still completely missing, it might have an internal network discovery problem. For this you can use this tool to recover it:

> [Download the manufacturer tool “Daheng Debugging ConfigureIP”](https://download.vioso.com/drivers/daheng/Daheng%20ConfigureIP%20Debuggingtool.zip)

1. First enumerate the device
2. Input the MAC address of the camera: It is usually written on the sticker underneath the mounting adapter.
3. Set the desired IP address. Must be in the same segment as the network adapter.
4. Click “Resume device IP” and finally enumerate the device to see whether the camera will appear in the list.

<figure><img src="https://3901153090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQOJaA9kiXUCmPo5Lma3%2Fuploads%2FsQmKqCaG73xvHhgpCAHM%2FCConfigureIP.jpg?alt=media&#x26;token=b922e5ad-bd4d-4c12-9547-00dcfd5859a0" alt="" width="375"><figcaption></figcaption></figure>

&#x20;

### **Multi-Camera usage:**

* If only one camera is showing up in DirectShow (and VIOSO), you can run the Daheng `C:\Program Files\Daheng Imaging\GalaxySDK\DirectShow\DX` **GxDirectShowRegister.exe** tool to register the total number.\
  If the executable is missing in the DX folder, you can downlaod it from here: [GxDirectShowRegister.exe](https://download.vioso.com/drivers/daheng/GxDirectShowRegister.exe)\
  The cameras should then show as “Daheng Imaging Device 1 .. 2 ..3 ” etc.
* In Galaxy Viewer, when switching between cameras views, stop acquisition on the previous first or you will have bandwidth error warnings.
* In VIOSO MRD window (Model View Control) you might not see the camera full name in the dropdown menu. To check if it’s the right camera assigned, open the MRD file you created in a text editor. It is in XML format where `defCamName` parameter refers to the camera that calibrated the selected compound.<br>
* Optional tip: It can be helpful to fix camera custom names in GxGigEIPConfig (see above ). They will appear in VIOSO under “adjust camera > Options > Camera info”
