SwisTrack/Components/InputCamera1394

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

This component allows you to grab image from firewire cameras using the CMU driver. The output images are grayscale or color (RGB) images. As the CMU driver does only exist for Windows, this component is not cross platform.

Input[edit | edit source]

A firewire (1394A or 1394B) camera.

Output[edit | edit source]

A grayscale or color (RGB) image.

Parameters[edit | edit source]

Camera Number[edit | edit source]

Allows you to select the camera if there are multiple firewire cameras connected.

Video Format and Mode[edit | edit source]

Video Format (0..2) and Mode (0..7) allow you to select the desired input type from the camera. Beware that a conversion is automatically done to output only grayscale or RGB images. Thus, YUV format are not really interesting, except if it allows for an increased camera frame rate.

The following table describes the different modes and formats. To check the available input types of you camera, you can use the 1394CameraDemo.exe that is shipped with the CMU driver, or check the camera datasheet.

Offset Name Field Bit Description
180h V_MODE_INQ_0 Mode_0 [0] 160 X 120 YUV(4:4:4) Mode (24bit/pixel)
(Format_0) Mode_1 [1] 320 X 240 YUV(4:2:2) Mode (16bit/pixel)
Mode_2 [2] 640 X 480 YUV(4:1:1) Mode (12bit/pixel)
Mode_3 [3] 640 X 480 YUV(4:2:2) Mode (16bit/pixel)
Mode_4 [4] 640 X 480 RGB Mode (24bit/pixel)
Mode_5 [5] 640 X 480 Y (Mono) Mode (8bit/pixel)
Mode_6 [6] 640 X 480 Y (Mono16) Mode (16bit/pixel)
Mode_x [7] Reserved for another Mode
- [8..31] Reserved
184h V_MODE_INQ_1 Mode_0 [0] 800 X 600 YUV(4:2:2) Mode (16bit/pixel)
(Format_1) Mode_1 [1] 800 X 600 RGB Mode (24bit/pixel)
Mode_2 [2] 800 X 600 Y (Mono) Mode (8bit/pixel)
Mode_3 [3] 1024 X 768 YUV(4:2:2) Mode (16bit/pixel)
Mode_4 [4] 1024 X 768 RGB Mode (24bit/pixel)
Mode_5 [5] 1024 X 768 Y (Mono) Mode (8bit/pixel)
Mode_6 [6] 800 X 600 Y (Mono16) Mode (16bit/pixel)
Mode_7 [7] 1024 X 768 Y (Mono16) Mode (16bit/pixel)
- [8..31] Reserved
188h V_MODE_INQ_2 Mode_0 [0] 1280 X 960 YUV(4:2:2) Mode (16bit/pixel)
(Format_2) Mode_1 [1] 1280 X 960 RGB Mode (24bit/pixel)
Mode_2 [2] 1280 X 960 Y (Mono) Mode (8bit/pixel)
Mode_3 [3] 1600 X 1200 YUV(4:2:2) Mode (16bit/pixel)
Mode_4 [4] 1600 X 1200 RGB Mode (24bit/pixel)
Mode_5 [5] 1600 X 1200 Y (Mono) Mode (8bit/pixel)
Mode_6 [6] 1280 X 960 Y (Mono16) Mode (16bit/pixel)
Mode_7 [7] 1600X 1200 Y (Mono16) Mode (16bit/pixel)
- [8..31] Reserved
18ch
... Reserved for other V_MODE_INQ_x for Format_x.
197h
198h V_MODE_INQ_6 Mode_0 [0] Exif format
(Format_6) Mode_x [1...7] Reserved for another Mode
- [8..31] Reserved
19ch V_MODE_INQ_7 Mode_0 [0] Format_7 Mode_0
(Format_7) Mode_1 [1] Format_7 Mode_1
Mode_2 [2] Format_7 Mode_2
Mode_3 [3] Format_7 Mode_3
Mode_4 [4] Format_7 Mode_4
Mode_5 [5] Format_7 Mode_5
Mode_6 [6] Format_7 Mode_6
Mode_7 [7] Format_7 Mode_7
- [8..31] Reserved

Frame Rate[edit | edit source]

Select the camera frame rate: 1.875 fps (0), 3.75 fps (1), 7.5 fps (2),15 fps (3), 30 fps (4), 60 fps (5), 120 fps (6), 240 fps (7).

To check the available frame rates of you camera, you can use the 1394CameraDemo.exe that is shipped with the CMU driver, or check the camera datasheet.

Configuration Window[edit | edit source]

Allows you to open a configuration window to modify other camera parameters of the firewire camera, such as the white balance, saturation, gain, etc. Note that not all cameras allow you to modify all these parameters.