MOVERIO Pro Developer's Guide (Rev.1.4)
82
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.
Use procedure 2 (when preview has already started)
Remarks
After setting the preview resolution in setPreviewSize,
be sure to perform
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.
/*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();
/*Stop preview*/
camera.stopPreview();
/*Acquire current parameter (or default value)*/
Camera.Parameters params = camera.getParameters();
/*From here on, use procedure 1*/
Содержание Moverio Pro BT-2000
Страница 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Страница 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Страница 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Страница 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Страница 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Страница 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Страница 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Страница 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Страница 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Страница 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Страница 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Страница 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...