Table of contents
Introduction
This explanation assumes that the i-PRO camera application development environment has been completed.
If you are not ready to build the development environment, please refer to here to complete it.
Also, in this tutorial, the SDK installation directory is described as ${SDK_DIR}
.
Operation overview
jpeg_app is a sample application that saves camera images in JPEG format.
You can save an image like the example below.
External libraries required for operation
To build with C/C++, need below:
libjpeg
To build with Python, need below:
Numpy
OpenCV
The use of external libraries will be explained later.
Directory path of the sample app
The C/C++ source code is stored below.
${SDK_DIR}/src/adamapp/jpeg_app
The Python source code is stored below.
${SDK_DIR}/src/adamapp-py/jpeg_app
How to build the sample app (C/C++)
See here for building with C/C++.
How to build the sample app (Python)
See here for building with Python.
How to use the sample app
As shown below, the image captured by the camera is displayed when it is started.
Appendix
How to change preferences
This application has some preferneces which a user is able to change.
When changing some preferneces, push "AppPrefs" button in "ADAM OPERATION UI" html page.
Resoultion:
Resolution to get jpeg images.
Specfify QVGA(320x240) or VGA(640x480) or HD(1280x720) or FHD(1920x1080).
However, by the ability of the camera, it may not work with the specified value.Frame rate:
Frame rate to get YC(YUV) images which are encoded to jpeg images.
Specify 1 or more.
However, by the ability of the camera, it may not work with the specified value.