jpeg_app

 

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++)


This article describes how to build it as AdamApp.
If you want to build it as Container AdamApp for Azure IoT Edge, see below.

Development tutorial (Container AdamApp for Azure IoT Edge) - Technology Partner FAQ (En) - Confluence (atlassian.net)

See here for building with C/C++.

 

How to build the sample app (Python)


This article describes how to build it as AdamApp.
If you want to build it as Container AdamApp for Azure IoT Edge, see below.

Development tutorial (Container AdamApp for Azure IoT Edge) - Technology Partner FAQ (En) - Confluence (atlassian.net)

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.