CONTRASTECH LEO Line Scan GigE User manual

www.contrastech.com
Preface
The industrial Line scan camera mentioned in this manual is a device with GigE interface, which used for
fast and real-time transmission of uncompressed images. The user can conduct image previewing and
parameter setting through the client software or the SDK, the user can set parameters (such as working
mode, image parameter adjustment, etc.).
©2019Hangzhou Contrastech Co., Ltd.
Hangzhou Contrastech Co., Ltd. reserves the right to revise this manual without prior notice. No one may obtain all
or part of this manual in any form without the authorization of Hangzhou Contrastech Co., Ltd.
Purpose of the manual
This Manual is a basic description of LEO series GigE interface Line Scan cameras, which mainly includes the product
description, quick installation guide and Simple introduction of SDK(iDatum). This manual may be updated due to
product upgrades or other reasons. If you need, please contact the sales engineer for the latest version of this manual.
Warranty
To ensure that your warranty remains in force, please adhere to the following guidelines:
Do not remove the camera's serial number label.
If the label is removed and the serial number can't be read from the camera's registers, the warranty is void.
Do not open the camera housing.
Do not open the housing. Touching internal components may damage them.
Prevent ingress or insertion of foreign substances into the camera housing.
Prevent liquid, flammable, or metallic substances from entering the camera housing. If operated with any foreign
substances inside, the camera may fail or cause a fire.
Avoid electromagnetic fields
Do not operate the camera in the vicinity of strong electromagnetic fields. Avoid electrostatic charging.
Clean the camera carefully
Avoid cleaning the sensor if possible.
Handle this camera carefully
Do not abuse the camera. Avoid striking, shaking, etc. The camera could be damaged by improper handling.
Please Reading the manual
Please read the manual carefully before using the camera.
www.visiondatum.com

www.contrastech.com
Contents
Preface
1 Product Description
Product Introduction
Product Features
Accessories List
Camera Mechanical Specifications
I/O Control and Physical Interface
2 Installation and Setting
Software Installation
Hardware Installation
3 Setting and Operating
Software Specifications
4 Main Function Description
Device Management
Image Format and Frame Rate
5 Image Acquisition
Line Frequency
Image Acquisition Mode
Trigger Mode
Trigger Source
Trigger Parameters
6 Trigger Output
Trigger Output Selecting
Output Signal Setting
7 I/O Electrical Features and Wiring
I/O Electrical Features
2K I/O Wiring
I/O Wiring Typical Cases
8 Image Control
Resolution
ROI
Image Reverse
Pixel Format
Binning
Exposure Mode
Gain
Black Level
White Balance
Gamma Correction
AOI
LUT
Shading Correction
User Settings
9 FAQ
10 Technical Support

www.contrastech.com
Product Description
Product Introduction
LEO series industrial cameras compatible with GigE、USB3.0 and CameraLink data bus Standards, supports
GenICam、USB3 Vision® and GigE Vision®, Smoothly connect with third-party software, like HALCON and
Vision Pro, not need for secondary development. LEO series cameras with excellent cost performance and very
suitable for various inspections measurement and high-speed imaging applications. This series cameras won
customers high praise because its outstanding performance in cellphone and tablet PC screen inspection, LED
automatic packaging, defect inspection, and electronic components manufacturing, wafer positioning and
other applications.
With this variety of sensors and interfaces, combined with the extensive features offered, LEO series Cameras
are fit for a wide range of vision applications.
Product Features
*Ethernet interface provides 1Gbps bandwidth, with maximum 100m transmission
*USB3.0 interface supports theoretical 5Gbps bandwidth. USB interface also for power supply
*128MB on-board frame buffer for data transmission and image retransmission
*Supports software trigger, hardware trigger, free run mode and etc.
*Supports sharpness, noise reduction, gamma correction, LUT, black level correction, brightness,
contrast and other ISP function
*Supports interpolation algorithm, white balance algorithm, color conversion matrix, hue,
saturation and etc. for color camera
*Supports various output formats for image data and supports ROI, binning, mirror and etc.
*Conforms to USB3 Vision protocol and GenICam standards for USB3.0 Cameras
*Conforms GigE Vision protocol and GenICam standards for GigE Cameras
*Supports PoE power supply DC 12V wide range power supply for GigE Cameras
Accessories List
Please check the device if there is an obvious damage and no items is missing when open the box.
For the list, please check the table below:
Accessories List
1
LEO Line Scan Camera
1PC
This Manual Mentioned Camera
2
Lens Adapter Ring
1PC
Factory standard with M42 to C-mount adapter ring.
Please select right adapter ring for Other lens mount(Optional)
3
DC Switch Power Supply
1PC
Above 12V 0.5A power adapter or switching power supply(Optional)
4
Power I/O Cable
1PC
12pin cable or extension cable.
5
Cable
1PC
Super class 5 or 6 network cable (optional)
6
Lens
1PC
C-Mount or other lens mount.(Optional)

www.contrastech.com
I/O Control and Physical Interface
The cameras are interfaced to an external circuity via connectors located on the back of the housing
The Industrial camera rear appearance contains standard RJ45 GigE interface, 12pin power, I/O input connector
and camera working status indicator light.
There are two M2 screw holes on both side of GigE interface, which used to fix cable to reduce the loosening
caused by vibration.
For Line Scan camera, it can be power-up via directly plugged into the 12pin power supply I/O cable and
provide input and output functions, 12pin connector as shown below.

www.contrastech.com
2K-Scan camera
The pin signals corresponding to each I/O port of 2K linear camera are defined in the following table.
The differential input need TTL, the electrical level is 5V. The bi-directional I/O level is standard 5~24V
Wire Color of
VT-Hirose12-12
Pin
Signal
I/O Type
I/O Designation
Description
Black
1
GND
——
——
GND
Red
2
DC-PWR
——
——
DC Power +
Brown
3
IO_IN0_P
Input
Line0+
Differential Input IO 0+
Orange
4
IO_IN0_N
input
Line0-
Differential Input IO 0-
Yellow
5
GND
Input / Output
Line2 Signal Ground
Signal ground
Green
6
IO_IN1_P
Input
Line3+
Differential Input IO 1+
Blue
7
IO_IN1_N
Input
Line3-
Differential Input IO 1-
Purple
8
IO2
Input / Output
Line2 Signal Cable
Bi-directional IO
Grey
9
IO_OUT0_P
Output
Line1+
Differential Output IO 0+
White
10
IO_ OUT0_N
Output
Line1-
Differential Output IO 0-
Pink
11
IO_ OUT1_P
Output
Line4+
Differential Output IO 1+
Bright Green
12
IO_ OUT1_N
Output
Line4-
Differential Output IO 1-
4K-Scan camera
The pin signals corresponding to each I/O port of 2K linear camera are defined in the following table.
The differential input need TTL, the electrical level is 5V. The bi-directional I/O level is standard 5~24V
Wire Color of
VT-Hirose12-12
Pin
Signal
I/O Type
I/O Designation
Description
Black
1
GND
——
——
GND
Red
2
DC-PWR
——
——
DC Power +
Brown
3
IO_IN0_P
Input
Line0+
Differential Input IO 0+
Orange
4
IO_IN0_N
Input
Line0-
Differential Input IO 0-
Yellow
5
GND
Input / Output
Line2 Signal Ground
Signal Ground
Green
6
232_TXD
Output
232 Serial Port Output
RS232_TXD
Blue
7
232_RXD
Input
232 Serial Port Input
RS232_RXD
Purple
8
IO2
Input / Output
Line2 Signal Cable
Bi-directional IO
Grey
9
IO_OUT0_P
Output
Line1+
Differential Output IO 0+
White
10
IO_ OUT0_N
Output
Line1-
Differential Output IO 0-
Pink
11
IO_ IN1_P
Input
Line3+
Differential Input IO 1+
Bright Green
12
IO_ IN1_N
Input
Line3-
Differential Input IO 1-

www.contrastech.com
Installation and Setting
You should perform the software installation procedure first and the hardware installation procedure second.
Software Installation
If you use a firewall on your computer, disable the firewall for the network adapter to which your camera is
connected.
Close the Firewall
In order to ensure the camera software, keep running and image transmission stability, please close the firewall
before using the software.
System Requirements
LEO Camera Software Suite for Windows requirements that one of the following operating systems is installed
on your computer.
Windows 32Bit: Windows 10, Windows 7, Windows XP.
Windows 64Bit: Windows 10, Windows 7.
Linux 32Bit/64Bit (Currently ARM Systems are not supported):
Ubuntu 14.04(32/64Bit)、Ubuntu 6.04(32/64Bit)、Redhat7(64Bit)、Centos7(32/64Bit)、
gcc/g++4.6.3 and above version is supported.
MAC 64Bit: macOS 10.10.7 above version and Xcode 7.0 above version is supported.
Windows System
iDatum default installation path is C:\Program Files\ or Program Files (x86) iDatum, After installation, the
iDatum file contain Development file as below:
Documentations(Develop Doc.)
Includes(SDK header file)
Libraries(SDK Lib File)
Samples(Samples Programs)
Note: In the default installation path of C:\Program Files \ or Program Files (x86)\CommonFiles\iDatum
There are Three files, include Drivers、Runtime and Service.
Linux System (Currently ARM Systems are not supported)
iDatum default installation path is opt/iDatum,after installation,the iDatum file contain subfolders as below:
bin(Executable file)
Include(SDK header file)
Lib(SDK Lib file)
Samples_Linux SDK(Samples Programs)

www.contrastech.com
Installation Steps
You can double-click the iDatum Client installation apk to install the iDatum Client Software when the PC not
install the iDatum Client Software. The installation apk can automatically set the language according to the
system language, installation languages are either simplified Chinese or English. You can pull down the upper
right corner settings to change installation language if you need. After confirming Settings, click the “Start
installation”to next step, as shown in the figure below.
Please follow the prompts. Select the driver to be installed according to the connection mode of the camera
(Multiple options are supported), then select the installation path and Click the “Next”to start the installation.

www.contrastech.com
Hardware Installation
The installation procedures assume that you will be making a peer-to-peer connection between your
camera and a computer.
Make sure that the following items are available before starting the installation:
LEO GigE Line scan camera
As applicable, a power supply or a GigE power injector
As applicable, a C-mount lens for camera
The computer with a GigE network adapter installed
The computer must be equipped with appropriate operating system
Standard Ethernet patch cable (CAT6 or better).
LEO Series Industrial camera with GigE interface,to ensure the transmission rate bandwidth
of Real-time image, the CAT 5E or CAT6 patch cable is required.
You should perform the software installation procedure first and the hardware installation procedure
second.
Steps:
Mount C-Mount lens on the camera
Connect the camera to the computer and power
If you are using PoE:
Connect one end of a network cable to the network connector of the power injector labeled “Data
In” and connect the other end of the cable to the network connector of the GigE network adapter in
your computer
Connect one end of the AC cable for the power injector to the injector's body and the other end to
an AC outlet;
Connect one end of a network cable to the network connector of the power injector labeled “PoE
Out” and connect the other end of the cable to the network connector of the camera.
If you are using 12-Pin Hirose cable:
Plug one end of an Ethernet cable into the network adapter in your computer and The other end of
the cable into the GigE connector of the camera;
Plug the 12-pin connector of the cable from your power supply into the 12-pin connector of the
camera;
Switch on the power supply above 12V 0.5A.

www.contrastech.com
Network Settings
Before using the camera, you need to configure IP is in the same network segment with the computer. You
can modify it in “Local Connection” to ensure network communication is normal.
Local Network Configuration
Click “Control Panel” > “Network and Internet” > “Network and Sharing Center” > “Change Adapter
Configuration.” Then select corresponding network card to configure it automatically obtain IP address
or manually assign it as same network segment address with the camera. Shown as below:
Open “Advanced” in the properties, set “Jumbo Frame” as its maximum value:9014bytes, both of
transmit buffer and receive buffer set as 2048bytes, the Interrupt Throttle Rate set as extremum
value. These maximum values mentioned above depend on the specific network card. Shown as
below:

www.contrastech.com
Setting and Operating
Software Specifications
Main interface
Double-click the iDatum shortcut on the desktop to open up the client software. There is menu bar area,
control toolbar area, device list & properties area and preview area, and the current device is displayed in the
device list, double-click to open the device.
Menu Bar
The menu bar for iDatum client provides following functions: File, View, Settings, Tool and Help, as shown in
the figure below.
Control Tool Bar
The control bar shown as ②in the Home Screen of Software,the icon meaning is shown in the figure below.
The operation buttons in the tool bar can quickly and conveniently edit camera images.

www.contrastech.com
The meaning of shortcut icons in Device List is shown as below.
Connection/Disconnection:After you selecting the camera, click “Connect” to connect the camera;
click “Disconnect” to disconnect the camera.
Start/Stop Acquisition:For current connected camera,click “Start Acquisition” to acquire image data;
click “Stop Acquisition” to stop image data acquisition.
Batch Start Acquisition:click “Batch Start Acquisition” to start image data acquisition for all currently
connected camera by iDatum.
Batch Stop Acquisition:click “Batch Stop Acquisition” to stop image data acquisition for all currently
connected camera by iDatum.
Expansion/Collapse:This function can be used to expand or collapse the Device List and Device
Information which list on the left side of iDatum, and the default state is expansion. In the “Collapse”
state,the iDatum left side only display the searched cameras.
The manual refresh function will appear when you move the mouse cursor to GigE、USB、CameraLink interface,
take GigE interface for example as below.

www.contrastech.com
Device List Icons Descriptions
Icons
Status
Significance
Available
The camera is in connectable state, double-click the camera can connect and operate the
camera.
Connected
The iDatum client software is connected and can normally work.
Acquisition
The iDatum has been connected and start image acquisition.
Occupation
The camera is connected by another process,cannot be reconnected via the iDatum. You
need to disconnect other client software or processes to connect the camera via current
iDatum.
Inaccessible
The camera is inaccessible in this LAN; you need to modify the IP address to same
network segment to connect and operate the camera.
Available
In LAN, other PCs iDatum client software connect the camera via control & receive
mode or control mode. The current iDatum client software can connect the camera
via receive mode to read camera's parameter and image parameter.
Connected
The current iDatum client software can connect the camera via receive mode to read
camera's parameter and image parameter.

www.contrastech.com
The Device Properties Shown as Below.
Click the “>” icon ahead of the device name in the Device Properties Bar Are, to expand device attribute trees.
They are Device Control、Image Format Control、Acquisition Control、Digital IO Control、Analog Control、
LUT Control、Transportation Layer Control、User Set Control.
And the brief introduction of these options shown as below:
Device Control
In this option, you can check device information and modify device name.
Image Format Control
In this option, you can modify the format of pixel, AOI and test module, etc.
Acquisition Control
In this option, you can set the camera's acquisition mode, trigger exposure time, etc.
Digital IO Control
In this option, you can manage different I/O input or output signals.
Analog Control
In this option, you can adjust the camera acquired image simulation signals, including gain, white balance
and gamma correction.
LUT Control
In this option, the camera can perform gray level transmission output according to the search table set by
user, and highlighting the AOI.
Transportation Layer Control
In this option, you can set the camera's transmission protocol parameters.
User Set Control
In this option, you can save or load the adjusted parameters program and set it as default program when
open the iDatum.
Note:For different models of camera, the above-mentioned setting steps may be different, please
refer to the actual one you got.

www.contrastech.com
Main Function Description
Device Management
Modify Device Name
Open the iDatum to find “Device Control” and expand it, there will display the device information that including
device model, version information sequence and etc. You can enter device name in the “Device User ID” bar,
shown as below.
In “Device Control” option,you can enable “Device Command”, “Device Reset” and “Device Temperature” as
actual needed, shown as below.

www.contrastech.com
Image Format and Frame Rate
Camera Data Format
The camera supports multiple image formats,the ROI parameter values in the user setting will increase image
frame rate.
Color camera default output format is YUV 422 8,mono camera default output format is Mono8.
“ Y” means Support,“—”means nonsupport.
The color camera converts the original data to RGB8 via pixel interpolation algorithm.
Bayer GR,Bayer GB,Bayer BG,Bayer RG as shown as below.
Bayer GR Bayer GB Bayer BG Bayer RG
The camera with 12Bit ADC(Some model only support 10Bit ADC),but considering the user's processing
capacity of data volume, the 8bit data output is provided. In order to retain the gray level output of the
image data, the 8bits are extracted from the high-order as the output.
The corresponding numbers of Bytes to different formats are shown as below.
In the client software to find “Image Format Control” and expand it. To click “Pixel Format” you can view the
pixel format supported by the current camera to select right output mode according to your actual demands.
shown as below:

www.contrastech.com
Image acquisition
Line Frequency
Line frequency is the number of lines that a line scan camera can acquired in a second. The line frequency of
real-time acquisition by the camera depends on the bandwidth, pixel format, line readout time and exposure
time.
Line readout time: The less time it takes to readout each line, the higher the line frequency
Exposure time: The lower the exposure time, the higher the line frequency
Bandwidth: The larger the bandwidth, the higher the line frequency
Pixel format: Different pixel formats take up different bytes, the fewer bytes the pixel format
takes up, the more line frequency the camera has.
The camera frame rate is proportional to the line frequency and inversely proportional to the height of the
image, namely, Fps=Lps/Image Height.
Via “Acquisition Line Rate(Hz)” in” Acquisition Control”, can set camera line frequency. shown as below.

www.contrastech.com
Image Acquisition Mode
The line scan camera trigger mode can be divided into SingleFrame and Continuous.
The specific working principle and corresponding parameters are as follows:
Parameters:Acquisition Control > Acquisition Mode
SingleFrame Acquisition
Mode Select:SingleFrame
Working principle: After the camera starts Acquisition images, it only Acquisition one image
and then stop
Continuous Acquisition
Mode Select:Continuous
Working principle: After the camera starts to acquisition images, images can be continuously
acquisition. The number of acquisition frames per second is determined by the real-time frame
rate, and needs to be stopped manually

www.contrastech.com
Trigger Mode
The line scan camera trigger mode can be divided into Free Trigger, Line Trigger, Frame Trigger and
Line+Frame Trigger.
Trigger can be switched by On/Off button under Trigger Mode
Under “Acquisition Control” to set specific parameters in “Trigger Selector” and “Trigger Mode”.
Acquisition Mode:
Free Trigger Mode
Trigger Selector = Line Start ;Trigger Mode = Off
and
Trigger Selector = Frame Burst Start ;Trigger Mode = Off
Working principle: the trigger signals of this mode are generated by the camera itself. The
users can adjust the line frequency parameters according to actual needs.
Line Trigger Mode
Trigger Selector = Line Start ;Trigger Mode = On
and
Trigger Selector = Frame Burst Start ;Trigger Mode = Off
Working principle: The line frequency is determined by the frequency of the external trigger
control signal. Under this mode, only one line is exposed when a trigger signal is input.
In “Trigger Source”, you can select the trigger source of line trigger. The range of trigger signal are Line0,
Line2, Line3, Encoder Module Out and Frequency Converter. Shown as below.
Table of contents
Other CONTRASTECH Digital Camera manuals