90758f3b42d98f4f557a97648336cbaa98431f44
[platform/adaptation/npu/trix-engine.git] / docs / markdown / TizenSample.md
1 ---
2 title: Tizen Sample
3 short-description: Tizen MLAPI Sample
4 ...
5
6 # Tizen MLAPI Sample
7
8 As NPU-DDK officially supports Tizen MLAPI (i.e., NNStreamer), it's possible for Tizen app developers to access NPU-DDK libraries and NPU simulator on Tizen emulator.
9
10 ## Prerequisites
11
12 The sample application requires Tizen emulator 6.0 or more.
13 - `Tizen 6.0`: up-to-date version available in offical Tizen Studio
14 - `Tizen 6.5`: staging version available in http://107.110.2.162/packages
15
16 The mandatory packages to be installed are as follows.
17 - `libmrpsim`: NPU Simulator ([Repo](https://github.sec.samsung.net/AIP/SIM_TrinityVision2))
18 - `npu-engine`: NPU User Library ([Repo](https://github.sec.samsung.net/AIP/NPU_SystemService))
19 - `nnstreamer-trix-engine`: NNStreamer Tensor Filter Subplugin for TRIx Engine ([Repo](https://github.sec.samsung.net/AIP/NPU_SystemService/tree/tizen/plugins/nnstreamer))
20
21 Note that before such packages are shipped to official emulator images, you should download the pre-built packages in [here](https://art.sec.samsung.net/artifactory/aip_generic/RPMS_FOR_TIZEN_EMUL/) and customize your emulator image. Please refer to [here](https://github.sec.samsung.net/AIP/TRIV2_TIZEN_SAMPLE) for detail.
22
23 ```console
24 $ git clone https://github.sec.samsung.net/AIP/TRIV2_TIZEN_SAMPLE
25 $ cd TRIV2_TIZEN_SAMPLE
26 $ ls
27 install.sh  README.md  RPMS  TRIV2_SAMPLE
28 $ sdb devices
29 List of devices attached
30 emulator-26101          device          m-0405-1
31 $ ls -1 RPMS
32 libmrpsim-3.8.71-0.i686.rpm
33 nnstreamer-trix-engine-2.4.2-0.i686.rpm
34 npu-engine-2.4.2-0.i686.rpm
35 npu-engine-utils-2.4.2-0.i686.rpm
36 $ bash install.sh
37 ...
38 ```
39
40 ## Tizen Sample App
41
42 Then, you can just open `TRIV2_SAMPLE` project in Tizen Studio, and run the project on the customized emulator image!
43
44 ![demo](https://github.sec.samsung.net/storage/user/69000/files/032d9f80-964a-11eb-957a-177261e81484)