Epson Moverio Pro BT-2000 Developer's Manual page 88

Hide thumbs Also See for Moverio Pro BT-2000:
Table of Contents

Advertisement

Use procedure 1 (Set the camera mode to single-through-5m and the preview resolution
to VGA)
In this example, the width and height of the image are reduced to approximately 1/4 and
displayed in a preview.
/*Start camera*/
camera = Camera.open();
/*Acquire current parameter (or default value)*/
Camera.Parameters params = camera.getParameters();
/*Set camera mode to single-through-5m*/
params.setEpsonCameraMode(Camera.Parameters.EPSON_CAMERA_MODE_SINGLE_THROU
GH_5M);
/*Set preview resolution to VGA*/
params.setPreviewSize(640, 480);
/*Set frame rate to 7.5fps*/
params.setPreviewFpsRange(7500, 7500);
/*Reflect camera setting in camera device*/
camera.setParameters(params);
/*Start preview*/
camera.startPreview();
Use procedure 2 (when preview has already started)
/*Stop preview*/
camera.stopPreview();
/*Acquire current parameter (or default value)*/
Camera.Parameters params = camera.getParameters();
/*From here on, use procedure 1*/
Remarks
After setting the preview resolution in setPreviewSize,
setParameters. Changed content is not reflected until setParameters is executed.
When the preview has already started, use stopPreview to temporarily stop the
preview.
Each preview resolution has a limited combination of frame rates and camera
modes. Note that a run-time exception will occur in setParameters for
combinations that exceed the limit.
You cannot set single-through-5m or side-by-side as the preview resolution. If
you want to acquire images in single-through-5M or side-by-side, perform
shooting by using takePicture.
The resolution set for preview resolution uses image data acquired in
PreviewCallback.
MOVERIO Pro Developer's Guide (Rev.1.4)
82
be sure to perform

Advertisement

Table of Contents
loading

This manual is also suitable for:

Moverio pro bt-2200

Table of Contents