3. Design Overview

3.1. System Architecture

The following is the TDL SDK system architecture diagram; The TDL SDK architecture is on Cvitek’s Middleware and TPU SDK.

It is mainly divided into three modules: Core, Service and Application.

Core mainly provides algorithm-related interfaces, encapsulating complex underlying operations and algorithm details.

Users can directly use the Video Frame Buffer obtained by VI or VPSS for model reasoning.

TDL SDK will conduct corresponding pre and post processing on the model and complete reasoning.

Service provides algorithmic auxiliary apis, such as mapping, feature comparison, and area intrusion determination.

Application Encapsulates the application logic, including the face capture application logic.

_images/Design002.png

Fig. 3.1 Figure 1.

The three modules are placed in two libraries:

Module

Dynamic Library

Static Library

Core, Service

libcvi_tdl.so

libcvi_tdl.a

Application

libcvi_tdl_app.so

libcvi_tdl_app.a

3.2. Directory Structure

The directory structure of TDL SDK is as follows:

Directory Name

Description

include

TDL SDK headers

sample

Sample source code

doc

Markdown-formatted document

lib

TDL SDK static and dynamic libraries

bin

TDL SDK binary file