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
meta_stream_app and metaDataStream_sample_app are sample application that send ONVIF Metadata streams at regular intervals.
External libraries required for operation
No special mention.
Directory path of the sample app
The C/C++ source code is stored below.
${SDK_DIR}/src/adamapp/meta_stream_app
The Python source code is stored below.
${SDK_DIR}/src/adamapp-py/metaDataStream_sample_app
How to build the sample app (C/C++)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR} $ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
$ cd src/adamapp/meta_stream_app $ make
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp/meta_stream_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
It is successful if a character string like the image below is displayed.
How to build the sample app (Python)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR} $ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
$ cd src/adamapp-py/metaDataStream_sample_app $ make
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp-py/metaDataStream_sample_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
It is successful if a character string like the image below is displayed.
How to use the sample app
An ONVIF Metadata stream is emitted by the ADAM_MetaDataStream_SetRaw() API. For details, please refer to the API specifications and ONVIF specifications. If you check the Metadata stream Receiver of the Resource Monitor, you can see that the Metadata stream is issued every 10 seconds by default. You can check it by setting as follows.
RTSP-URI : rtsp://<CameraIP>/Src/MediaInput/stream_1?event=1
ID : Camera login ID
Password : Camera login password
RTSP-URI settings do not work with the default values. Please pay attention to the parts in bold as shown below as they are easy to make mistakes.
Correct : rtsp://<CameraIP>/Src/MediaInput/stream_1?event=1
Incorrect : rtsp://<CameraIP>/Src/MediaInput/stream_1?analytics=1