eai_demo_yolo_with_gui/linux_eai_code/eai
2024-03-29 17:04:28 +08:00
..
ai init linux demo code 2024-03-29 17:04:28 +08:00
dto init linux demo code 2024-03-29 17:04:28 +08:00
lib init linux demo code 2024-03-29 17:04:28 +08:00
third_party init linux demo code 2024-03-29 17:04:28 +08:00
video init linux demo code 2024-03-29 17:04:28 +08:00
CMakeLists.txt init linux demo code 2024-03-29 17:04:28 +08:00
librga.so init linux demo code 2024-03-29 17:04:28 +08:00
protocol.h init linux demo code 2024-03-29 17:04:28 +08:00
README.md init linux demo code 2024-03-29 17:04:28 +08:00
shmemq_ai init linux demo code 2024-03-29 17:04:28 +08:00
shmemq_video init linux demo code 2024-03-29 17:04:28 +08:00
vsoa_common.h init linux demo code 2024-03-29 17:04:28 +08:00
vsoa_service_interface.cc init linux demo code 2024-03-29 17:04:28 +08:00
vsoa_service_interface.h init linux demo code 2024-03-29 17:04:28 +08:00
vsoa_stream_recver.cpp init linux demo code 2024-03-29 17:04:28 +08:00

EAI README

项目依赖

FFmpeg

软解码需要依赖 FFmpeg6.0

Build FFmpeg

./configure --enable-shared --disable-yasm
make -j4
sudo make install

VSOA

框架使用到了 VSOA SDK

Install VSOA

VSOA SDK 安装说明

编译项目

mkdir build && cd build
cmake ..
make

运行

程序运行还缺少一些AI/算法模型组件。这边提供一个 test

编译依赖

测试模型编译依赖 cmake libopencv-dev libprotobuf g++ protobuf-compiler。 debian 系系统中直接使用 apt 进行安装即可。

编译

cd ncnn
mkdir build && cd build
cmake -DNCNN_DISABLE_EXCEPTION=OFF ..
make -j4

部署

sudo mkdir -p /etc/acosail_ai_algorithm/test_algorithm
sudo chown acosail:acosail /etc/acosail_ai_algorithm -R
cp -r data/version-RFB /etc/acosail_ai_algorithm
cp build/libtestFaceLibrary.so /etc/acosail_ai_algorithm/test_algorithm
echo "this is a test demo" >> /etc/acosail_ai_algorithm/test_algorithm/description
echo "1" >> /etc/acosail_ai_algorithm/test_algorithm/id

acosail 为实际登录的用户名 description 文件中存储的是AI/算法模型的说明 id 文件中存储的是编号

编译EAI

mkdir build && cd build
cmake ..
make -j4