Epson BT-2000 Developers Guide - Page 57
shows an example of the flow for the API used in this guide.
View all Epson BT-2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 57 highlights
By using the API provided by the BT-2000, you can display a preview and handle image data. In either situation, you need to set the camera parameters. You can change the camera mode, frame rate, preview resolution, and camera resolution. However, when setting the camera parameters, you need to stop the previews temporarily by using stopPreview. Also, make sure you use pre-established parameter combinations, see table 6-8. Note that values larger than 1080p set for the preview will not be displayed. When handling image data, you need to register the image data acquisition callback method. Figure 6-5 shows an example of the flow for the API used in this guide. After starting the camera, the camera mode is set and the preview starts. During a preview, you can register the image acquisition callback method as necessary, and acquire images. Execute processing for the acquired images in the app. * Because the API in this guide does not comply with the android.hardware.Camera specifications and thread safe are not available, do not handle multiple threads at the same time. Camera.open Camera. setPreviewCallback Camera.getParameters registrer callback method (1) Set Mode Camera.Parameters. setEpsonCameraMode Camera.stopPreview If the callback is registered... Camera.setParameters Camera.startPreview Camera.PreviewCallback. onPreviewFrame (2) receive the images Figure 6-5 Example of API usage flow MOVERIO Pro Developer's Guide (Rev.1.0) 53