Files
FastDeploy/docs/cn/build_and_install/third_libraries.md

15 lines
785 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 第三方库依赖
FastDeploy当前根据编译选项会依赖如下第三方依赖
- OpenCV: 当ENABLE_VISION=ON时会自动下载预编译OpenCV 3.4.16库
- ONNX Runimte: 当ENABLE_ORT_BACKEND=ON时会自动下载ONNX Runtime库
- OpenVINO: 当ENABLE_OPENVINO_BACKEND=ON时会自动下载OpenVINO库
用户在实际编译时,可能会根据自身需求集成环境中已有的第三方库,可通出如下开关来配置
- OPENCV_DIRECTORY: 指定环境中的OpenCV路径`-DOPENCV_DIRECTORY=/usr/lib/aarch64-linux-gnu/cmake/opencv4/`
- ORT_DIRECTORY: 指定环境中的ONNX Runtime路径`-DORT_DIRECTORY=/download/onnxruntime-linux-x64-1.0.0`
- OPENVINO_DIRECTORY: 指定环境中的OpenVINO路径`-DOPENVINO_DIRECTORY=//download/openvino`