intel / libxcam

libXCam is a project for extended camera(not limited in camera) features and focus on image quality improvement and video analysis. There are lots features supported in image pre-processing, image post-processing and smart analysis. This library makes GPU/CPU/ISP working together to improve image quality. OpenCL is used to improve performance in different platforms.
Other
590 stars 230 forks source link

dnn: update dnn module to openvino version 2023/0 #830

Closed alimt1992 closed 1 year ago

alimt1992 commented 1 year ago

dnn: update dnn module to openvino version 2023/0

*git clone https://github.com/openvinotoolkit/openvino.git
*git checkout -b releases/2023/0 origin/releases/2023/0
*source <OPENVINO_INSTALLDIR>/setupvars.sh
zongwave commented 1 year ago

OpenVino 2023 released a Linux distribution package at https://docs.openvino.ai/2023.0/openvino_docs_install_guides_installing_openvino_from_archive_linux.html With this release user can install & setup OpenVino environment by running a script “source /opt/intel/openvino_2023/setupvars.sh”, the library and include path also can be exported by openvino.pc file.

automake can use pkg-config tool to get OpenVino path: $ pkg-config --cflags openvino -DTBB_PREVIEW_WAITING_FOR_WORKERS=1 -DIE_THREAD=IE_THREAD_TBB -DOV_THREAD=OV_THREAD_TBB -I/opt/intel/openvino_2023.0.1/runtime/lib/intel64/pkgconfig/../../../..//runtime/include/ie -I/opt/intel/openvino_2023.0.1/runtime/lib/intel64/pkgconfig/../../../..//runtime/include

$ pkg-config --libs openvino -L/opt/intel/openvino_2023.0.1/runtime/lib/intel64/pkgconfig/../../../..//runtime/lib/intel64 -lopenvino_onnx_frontend -lopenvino_paddle_frontend -lopenvino_pytorch_frontend -lopenvino_tensorflow_frontend -lopenvino_tensorflow_lite_frontend -lopenvino_c -lopenvino -ltbb -lpugixml

I think we can remove the compiling flags “OPENVINO_IE_LIBS_PATH” & “OPENVINO_IE_INC_PATH”.

alimt1992 commented 1 year ago

OpenVino 2023 released a Linux distribution package at https://docs.openvino.ai/2023.0/openvino_docs_install_guides_installing_openvino_from_archive_linux.html With this release user can install & setup OpenVino environment by running a script “source /opt/intel/openvino_2023/setupvars.sh”, the library and include path also can be exported by openvino.pc file.

automake can use pkg-config tool to get OpenVino path: $ pkg-config --cflags openvino -DTBB_PREVIEW_WAITING_FOR_WORKERS=1 -DIE_THREAD=IE_THREAD_TBB -DOV_THREAD=OV_THREAD_TBB -I/opt/intel/openvino_2023.0.1/runtime/lib/intel64/pkgconfig/../../../..//runtime/include/ie -I/opt/intel/openvino_2023.0.1/runtime/lib/intel64/pkgconfig/../../../..//runtime/include

$ pkg-config --libs openvino -L/opt/intel/openvino_2023.0.1/runtime/lib/intel64/pkgconfig/../../../..//runtime/lib/intel64 -lopenvino_onnx_frontend -lopenvino_paddle_frontend -lopenvino_pytorch_frontend -lopenvino_tensorflow_frontend -lopenvino_tensorflow_lite_frontend -lopenvino_c -lopenvino -ltbb -lpugixml

I think we can remove the compiling flags “OPENVINO_IE_LIBS_PATH” & “OPENVINO_IE_INC_PATH”.

changed dnn module Makefile.am accordingly. In order to access format_reader include and libs, an environment variable, "OPENVINO_EXTRAS_PATH" has been added.