Tizen Native API  5.5

The NNStreamer function provides interfaces to create and execute stream pipelines with neural networks and sensors.

Required Header

#include <nnstreamer/nnstreamer.h>

Overview

The NNStreamer function provides interfaces to create and execute stream pipelines with neural networks and sensors.

This function allows the following operations with NNStreamer:

  • Create a stream pipeline with NNStreamer plugins, GStreamer plugins, and sensor/camera/mic inputs.
  • Interfaces to push data to the pipeline from the application.
  • Interfaces to pull data from the pipeline to the application.
  • Interfaces to start/stop/destroy the pipeline.
  • Interfaces to control switches and valves in the pipeline.
  • Utility functions to handle data from the pipeline.

Note that this function set is supposed to be thread-safe.

Pipeline State Diagram

capi_nnstreamer_pipeline_state.jpg
Figure1. Pipeline State

Related Features

This function is related with the following features:

  • http://tizen.org/feature/machine_learning
  • http://tizen.org/feature/machine_learning.inference

It is recommended to probe features in your application for reliability.
You can check if a device supports the related features for this function by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
For example, your application accesses to the camera device, then you have to add 'http://tizen.org/privilege/camera' into the manifest of your application.
More details on featuring your application can be found from Feature Element.