Phytec USB-CAM-003H User manual

USB-CAM - Series
USB-CAM-003H, USB-CAM-103H
USB-CAM-004H, USB-CAM-104H
USB-CAM-051H, USB-CAM-151H
USB-CAM-052H, USB-CAM-152H
Manual
Edition January 2011
A product of a PHYTEC Technology Holding company

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
©PHYTEC Messtechnik GmbH 2011 L-740e_0
In this manual are descriptions for copyrighted products that are not explicitly
indicated as such. The absence of the trademark (™) and copyright (©) symbols
does not imply that a product is not protected. Additionally, registered patents and
trademarks are similarly not expressly indicated in this manual.
The information in this document has been carefully checked and is believed to be
entirely reliable. However, PHYTEC Messtechnik GmbH assumes no
responsibility for any inaccuracies. PHYTEC Messtechnik GmbH neither gives
any guarantee nor accepts any liability whatsoever for consequential damages
resulting from the use of this manual or its associated product. PHYTEC
Messtechnik GmbH reserves the right to alter the information contained herein
without prior notification and accepts no responsibility for any damages which
might result.
Additionally, PHYTEC Messtechnik GmbH offers no guarantee nor accepts any
liability for damages arising from the improper usage or improper installation of
the hardware or software. PHYTEC Messtechnik GmbH further reserves the right
to alter the layout and/or design of the hardware without prior notification and
accepts no liability for doing so.
©Copyright 2011 PHYTEC Messtechnik GmbH, D-55129 Mainz.
Rights - including those of translation, reprint, broadcast, photomechanical or
similar reproduction and storage or processing in computer systems, in whole or
in part - are reserved. No reproduction may occur without the express written
consent from PHYTEC Messtechnik GmbH.
For further information:
EUROPE NORTH AMERICA
Address: PHYTEC Technologie Holding AG
Robert-Koch-Str. 39
D-55129 Mainz
GERMANY
PHYTEC America LLC
203 Parfitt Way SW, Suite G100
Bainbridge Island, WA 98110
USA
Ordering
Information: +49 (800) 0749832
Technical
Support: +49 (6131) 9221-31
Fax: +49 (6131) 9221-33 1 (206) 780-9135
Web Site: http://www.phytec.de http://www.phytec.com
1st Edition January 2011

Table of Contents
1 © PHYTEC Meßtechnik GmbH 2011 L-740e_0
Table of Contents
1................................................................................4Delivery Contents
1.1 ...................................................................................4Accessories
1.2 ........................................5What you Need for the Initial Start-Up
1.3 .................................................6Features of the USB-CAM series
1.4 ............................................................................7Important Notes
1.5 ...........................................................8Declaration of Conformity
1.6 ..........................................9Overview of Connectors and Settings
1.7.1 .......................................................................9Connectors
1.6.2 ..........................................................................10Settings
2..........................................................................................11First Steps
2.1 ...................................................11Hardware-Installation on a PC
2.1.1 ....................................................11The USB Connection
2.2 .............................................14Installation of the Driver Software
2.3 .........................................................................20Mounting a Lens
2.4 ..............................................23Installation of the Demo Program
2.5 ......................26Starting Up the Camera with the Demo Program
2.5.1 .....................................................26The First Live Image
2.5.2 ............................................................28Select resolution
2.5.3 ............................................................30Problem Solving
2.5.4 ............................................31Adjusting Camera Settings
3........................................................................37The Camera in Detail
3.1 ..................................................................37Camera Connections
3.1.1 ................................................................37USB Interface
3.1.2 ...........37External Triggering, FCAM-111H /112H Only
3.2 ...................................................................41Connecting the Lens
3.3 ..............................................................45Mechanical Attachment
3.4 ...............................................47How to Maximize Image Quality
3.4.1 ...............................................................................47Lens
3.4.2 .........................................................................47Lighting
3.4.3 ................................................................53Camera Setup
4......................................................................58The Software Concept
4.1 ................................58Layers Standards of the USB-CAM Series
4.2 .....................................................61Accessing the Camera Driver
4.3 ........................................62Working with the Filter Graph Editor
4.3.1 ..............................62How to Get the Filter Graph Editor
4.3.2 ...........................62Working with the Filter Graph Editor
4.3.3 ....63How the Camera Appears in the Filter Graph Editor
5...................................................................................65Technical Data
5.1 ..........................................................67frame rates and sensitivity
6.........................................................................................68Dimensions

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
2©PHYTEC Messtechnik GmbH 2011 L-740e_0
Table of Figures
Figure 1: .............................................................. 4USB Connecting Cable
Figure 2: .......................................................... 9Rear view without trigger
Figure 3: ............................................................... 9Rear view with trigger
Figure 4: ............................................................... 11USB-Connector (PC)
Figure 5: ........................................................ 11USB-Connector (Camera)
Figure 6: ................................................................................ 12USB-Logo
Figure 7: ..................... 12USB Connecting Cable Type-A – Type Mini-B
Figure 8: ..................................... 15Title Menu of the „Vision Tools“ CD
Figure 9: ................................... 16Installation Menu for the USB Camera
Figure 10: ........................................................ 17Driver Installation, Step 1
Figure 11: ........................................................ 18Driver Installation, Step 2
Figure 12: ............................. 18Driver Installation, Compatibility Warning
Figure 13: ........................................................ 19Driver Installation, Step 3
Figure 14: ...................................................... 20Lens Assembly (C-Mount)
Figure 15: ........................................................... 21
Flange Back Distances and Mounting of C-Mount (Top) / CS-
Mount (Bottom) Lenses
Figure 16: ...................................... 24Title Menu of the‚ Vision Tools‘ CD
Figure 17: .................................. 24Installation Menu for the USB Cameras
Figure 18: ......................................................... 25Demo Installation, Step 1
Figure 19: ................................................. 25Installation Completed, Step 4
Figure 20: .................................. 26The Program „PHYTEC Vision Demo“
Figure 21: ................................. 27PHYTEC Vision Demo – Select Device
Figure 22: ....... 27PHYTEC Vision Demo – Live View Function Activated
Figure 23: .................................................. 29resolutions W-VGA-Models
Figure 24: ............................................ 30resolutions 5 Megapixel-Models
Figure 25: ........................................... 32Camera Setting „Device Settings“
Figure 26: .......................................... 33Camera Setting „Properties Color“
Figure 27: .................................... 34Camera Setting „Properties Exposure“
Figure 28: ....................................... 34Camera Setting „Properties Special“

Table of Contents
3 © PHYTEC Meßtechnik GmbH 2011 L-740e_0
Figure 29: ..................................35Further: Camera Settings „Partial Scan“
Figure 30: ........36Further possible Settings of the PHYTEC-Vision-Demo
Figure 31: ..........................................................38Connections USB-CAM
Figure 32: ....................................................................38Trigger-Connector
Figure 33: ....................................................................39Waveform Trigger
Figure 34: ...........................................................................40Digital Output
Figure 35: virtual sensor sizes (5M-pixel models)......................................42
Figure 36: virtual sensor size at different resolutions..................................42
Figure 37: .........................................................................45Mounting Plate
Figure 38: ...........................................46Attachment of the Mounting Plate
Figure 39: .......................................46Mounting Options of the USB-CAM
Figure 40: ..........48PHYTEC Ring Light Order No.: VZ-001-x, VZ-002-x
Figure 41: ...............49Light-Field- (Left) and Dark-Field-Lighting (Right)
Figure 42: ............................................................50The Shadow Projection
Figure 43: ................................................................51The Structured Light
Figure 44: .........................................................52The Silhouette Projection
Figure 45: .....................................................................53Transillumination
Figure 46: ......................................................68Dimensions without trigger
Figure 47: ...........................................................69Dimensions with trigger

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
1Delivery Contents
The standard scope of supply includes the following components:
•the camera
•a C/CS-mount adapter
•a tripod adapter (bolted together with the camera)
•the software-CD SO-221
•this manual
1.1 Accessories
For the operation of the camera you normally need some additional
components.
You can obtain following material designed to be compatible with the
camera from PHYTEC:
Figure 1: USB Connecting Cable
•USB Connecting Cable, 1.5 m
Order number WK184
Hint:
•Please note that the full data rate is specified for a cable length of
up to 5 m.
•Video lenses:
In our product range we keep a variety of high-quality lenses for
several purposes. We will gladly assist you in choosing an
adequate lens.
•Additional accessories:
Depending on your application you may need further components.
We are happy to assist you in case any questions should occur.
4©PHYTEC Messtechnik GmbH 2011 L-740e_0

Delivery Contents
© PHYTEC Messtechnik GmbH 2011 L-740e_0 5
1.2 What you Need for the Initial Start-Up
For the initial basic start-up you usually need only the USB-CAM and
a PC with an USB 2.0 Interface.
For completeness, here are all the components listed:
A C- or CS-Mount lens. Please note however that the high quality
of digital cameras should not be reduced by using lenses of low
quality (see section 3.4, “How to Maximize Image Quality”).
PHYTEC provides a wide range of compatible high-quality lenses.
A PHYTEC USB camera.
A cable for the connection between camera and USB bus. This will
usually be the USB interface (host controller) of your computer.
PHYTEC provides therefore a cable. You can use any other cable
alternatively if they comply with the USB 2.0 standard
A computer (PC, laptop) that meets the following requirements
Caution!
The host computer has to meet following requirements:
•USB 2.0 interface, compatible with the standards USB 2.0
Standard. Current capacity up to 500mA (standard). If using a USB
hub you must usually use an external power supply for the hub,
otherwise it can happen that the USB port can only be loaded with
about 100mA.
•processor: Pentium IV, 2GHz, 512 MB RAM or higher
•Graphics adaptor with 24 or 32-bit colour depth
•Operating system: Windows XP, VISTA and 7 (32 and 64 Bit)
•DirectX 9.0c or higher

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
6©PHYTEC Messtechnik GmbH 2011 L-740e_0
1.3 Features of the USB-CAM series
Resolution 744 x 480 / 640 x 480 / 320 x 240
Model USB-CAM-003H
USB-CAM-103H USB-CAM-004H
USB-CAM-104H
color / monochrom monochrom color
Sensor size 1/3“ CMOS
Color format Y8 RGB32, RGGB (Raw)
Interface USB 2.0 High Speed (USB Mini-B)
Feature (optional) - ext. Trigger,
Digital-
Output
- ext.
Trigger,
Digital-
Output
fps Up to 150 fps
Order number AK087 AK089 AK088 AK090
Resolution 2592 x 1944 (5 MPix), 2048 x 1536 (3,1MPix),
1600 x 1200 (2MPix), 1280 x 960 (1,2MPix)
1024 x 768 (0,8MPix), 640 x 480 (VGA)
Model USB-CAM-
051H USB-CAM-
151H USB-CAM-
052H USB-CAM-
152H
color / monochrom monochrom color
Sensor size 1/2,5“ CMOS
Color format Y8 RGB32, RGGB (Raw)
Interface USB 2.0 High Speed (USB Mini-B)
Feature (optional) - ext. Trigger,
Digital-
Output
- ext.
Trigger,
Digital-
Output
fps Up to 52 fps
Order number AK091 AK093 AK092 AK094
•WDM Stream Class driver included
•PHYTEC-SDK included
•connection for C-/CS-Mount lenses (lens not included)
Note:
•Find the detailed technical data in section 5.

Delivery Contents
© PHYTEC Messtechnik GmbH 2011 L-740e_0 7
1.4 Important Notes
•We hereby expressly note that, according to the product liability
law, we cannot be made responsible for damages caused by our
devices if they have been used or repaired inappropriately or if, in
case of a component replacement resp. system construction, other
parts than our original components or components approved by us
have been used, and especially if the operating instructions were
not correctly followed.
•Handle the camera with care. Avoid hard shocks, concussions, etc.
The camera can be damaged by incorrect handling and wrong
storage.
•Do not try to disassemble the camera. To avoid electric shocks, do
not remove neither screws nor the case. There are no components
in the camera that need user maintenance. Maintenance work may
only be carried out by qualified maintenance personnel.
•Never use strong or abrasive detergents (e. g. alcohol, benzene or
turpentine) to clean the case of the camera. Wipe the case with a
soft cloth slithtly moistened with a neutral cleanser.
•Never expose the camera to humidity, dust or dirt. This camera is
intended for indoor use only. Humidity can damage the camera and
cause the risk of electric shock.
•Never point the camera towards the sun or very bright objects.
Otherwise this may lead to blooming and smear.
•Keep the camera shut or mount a lens to avoid getting dust on the
CMOS chip.

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
8©PHYTEC Messtechnik GmbH 2011 L-740e_0
•Clean the CCD front panel carefully. Never use strong of abrasive
detergents for the cleaning of the CCD front panel.
•Only use the original cable and power supply intended for the
camera. The warranty expires if other cables or power supplies are
used.
1.5 Declaration of Conformity
The cameras meets the EC directive 2004/108/EG for a digital device
of class B. They have been tested and thus conform to EN 55016-2-
3:2006, EN 61000-6-3:2007, EN 61000-4-2:2009, EN 61000-4-
3:2006 and EN 61000-6-2:2005.
To conform to EU standards, shielded cables have to be used to
connect other devices to the camera. The cameras have been tested in
a typical environment complying with class B. It is therefore assumed
that the cameras will also be functioning in other environments
complying with class B.

Delivery Contents
1.6 Overview of Connectors and Settings
1.7.1 Connectors
Usually you only need the USB bus for connecting the camera. That
bus transmitts the video data, the control data and the supply voltage
for the camera.
Figure 2: Rear view without trigger
The USB-CAM-103H, 104H, 151H and 152H are equipped with a
BNC socket for the connection to an external trigger signal.
Figure 3: Rear view with trigger
© PHYTEC Messtechnik GmbH 2011 L-740e_0 9

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
10 ©PHYTEC Messtechnik GmbH 2011 L-740e_0
1.6.2 Settings
All parameters of the camera are adjustable via the USB bus. The
camera is delivered with a sample application (requires Windows XP
or higher and DirectX 9.0c or higher), that allows for the acquisition
of images and streams of images and the adjustment of the basic
parameters (see section 2.5)
It is, of course, possible to adjust the camera parameters independently
from this program. For this purpose, PHYTEC offers a WDM Stream
Class driver (see section 4) which allows the parameters to be set with
every image processing software compatible to DirectX 9.0c or
higher.
Alternatively the PHYTEC-SDK (DirectX wrapper) can be used. It
allows for a very convenient access to all features of the
USB-CAMs without the programmer having to become acquainted
with the complexity of DirectX. The SDK includes connections to
several programming interfaces:
-.NET Komponenten: for MS Visual Basic .NET and C# .NET
-ActiveX Control: for Microsoft Visual Basic 2005 and 2008
-C++ Class Libary: Microsoft Visual C++ 7.1, 8 and 9.
For each of these interfaces the SDK provides all binaries, headers and
libraries needed, a detailed help as well as sample projects and demo
programs with source codes.
You will find an overview dealing with the programming in section 4
„The Software Concept“.The complete specifications for the features
you will find in the help files dealing with the respective programming
environments on the „Vision-Tools“-CD, SO-221.
An outline of standardised dialogues is available in section 2.5.4.

First Steps
2First Steps
This chapter explains how to connect the USB camera to your
computer and how to install the software needed for the first image
acquisitions.
Section 2.1: Installation of the camera on a standard PC
Section 2.2:describes the installation of the software for all hardware
variants.
2.1 Hardware-Installation on a PC
2.1.1 The USB Connection
Check first if your computer is already equipped with a USB interface.
These sockets are known as type A USB connector (Figure 4).
Figure 4: USB-Connector (PC)
On the camera side is an USB socket of the type MINI-B (Figure 5).
Figure 5: USB-Connector (Camera)
© PHYTEC Messtechnik GmbH 2011 L-740e_0 11

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
You will be able to identify this socket by the USB logo (Figure 6).
Figure 6: USB-Logo
All signals and the supply voltage necessary for operating the camera
are usually available on this socket.
Therefore only one single cable is necessary for the camera (Figure
7).
Figure 7: USB Connecting Cable Type-A – Type Mini-B
Depending on the desired length of the cable, you can use one of these
USB cables for the connection:
•USB connecting cable, 1.5 m
Order number WK184
Hints:
•In case your PC should not have a USB 2.0 interface, you would
first have to install a USB 2.0 interface card to be able to use the
camera.
•Please note that the full data rate is specified only for a cable
length of up to 5 m.
12 ©PHYTEC Messtechnik GmbH 2011 L-740e_0

First Steps
© PHYTEC Messtechnik GmbH 2011 L-740e_0 13
The USB interface is „hot-plug“-capable. This means that you can
connect and disconnect the camera without having to shut down your
computer. Please mind however to close all programs that access the
camera to avoid data loss.
To put the camera into operation, simply plug one end of the USB
cable (Type Mini-B) into the socket on the back of the camera and the
other end into the USB-Connector on your PC.
Further connections are not required.
Caution!
You will have to install the respective driver software on your PC
prior to the initial operation. Without the installation of the driver, the
camera will not function at all or merely in a limited way.
Please read section 2.2 how to install the driver.

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
14 ©PHYTEC Messtechnik GmbH 2011 L-740e_0
2.2 Installation of the Driver Software
The appropriate software device driver has to be installed so that the
camera can be addressed by the application software.
This device can be found on the CD that is included with the camera.
You can also download driver software updates from the PHYTEC
website (www.phytec.de).
Caution!
Check first to see if your computer meets the following system
requirements for operating the camera:
•USB 2.0 interface, compatible with the standards USB 2.0
Standard. Current capacity up to 500mA (standard). If using a USB
hub you must usually use an external power supply for the hub,
otherwise it can happen that the USB port can only be loaded with
about 100mA.
•processor: Pentium IV, 2GHz, 512 MB RAM or higher
•Graphics adaptor with 24 or 32-bit colour depth
•Operating system: Windows XP, VISTA and 7 (32 and 64 Bit)
•DirectX 9.0c or higher
Make sure that your computer meets the hardware requirements and is
equipped with this software.
To install the driver software for the USB camera, proceed in the
following manner:
Caution!
The DirectX driver must be installed prior to installation of the driver
software for the USB camera. Otherwise not all driver functions will
be supported and/or the system may crash.
•Connect the camera to your computer. To install the driver the
camera must be ready for operation. Follow the instructions in the
previous sections for this.

First Steps
•Insert the CD SO-221 in your computer’s CD-ROM drive.
•The CD should start automatically, bringing up the title menu
shown in Figure 8.
If the CD doesn’t start automatically: open the content folder of
the CD (from your desktop or using Windows Explorer) and
double click on SO-221.exe.
Figure 8: Title Menu of the „Vision Tools“ CD
© PHYTEC Messtechnik GmbH 2011 L-740e_0 15

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
•Click on USB-CAM. You will be taken to the installation menu for
the PHYTEC USB Camera. Install 32Bit Driver (Figure 9)and
click on Next. To install the 64Bit driver please select the ‘Install
64Bit Driver’.
Figure 9: Installation Menu for the USB Camera
16 ©PHYTEC Messtechnik GmbH 2011 L-740e_0

First Steps
•The installation program of the USB Camera’s software driver will
appear, Figure 10:
Figure 10: Driver Installation, Step 1
•Select the camera model that is connected to the USB interface.
(This model should already be selected.)
If no selection appears, check to see if the camera is connected
correctly and ready for operation. This is required before the driver
can be installed. Click on „Next“ or “Weiter”.
•The driver is now installed (Figure 11)
In some cases a software compatibility warning will appear
(Figure 12). Click on „Continue Installation“ or “Installation
fortsetzen”.
© PHYTEC Messtechnik GmbH 2011 L-740e_0 17

USB-CAM-003H / 103H / 004H / 104H / 051H / 151H / 052H / 152H
Figure 11: Driver Installation, Step 2
Figure 12: Driver Installation, Compatibility Warning
18 ©PHYTEC Messtechnik GmbH 2011 L-740e_0
This manual suits for next models
7
Table of contents
Other Phytec Security Camera manuals