OBI Zhongguang Astra Pro camera Ubuntu/Linux C++ environment construction experience (2023.01)

Other tutorials for this camera are relatively old. Here I share the process of successfully setting up the environment in 2023.

First, you need to install C++ opencv. I recommend another tutorial on this site. I adjusted it according to this:

Teach you step by step how to install opencv c++ and python on Ubuntu. If you don’t succeed, hit me up.

I followed this tutorial to install and ended up missing the opencv.pc file. I solved it by following another article:

Solving OpenCV installation and configuration (Alibaba Cloud ESCserver) and its errors under Ubuntu

Last terminal input

pkg-config opencv --modversion

Outputting the version number is successful

The next step is to install the c++ sdk. The links to many other tutorials on this site have expired, but I found the current download link:

https://developer.orbbec.com.cn/download.html?id=75&menushow=1

SDK finds the corresponding version of c&c++ download

After downloading, unzip it

Run the install.sh inside

Create a build folder in the decompressed directory, enter the build directory, and enter:

cmake ..

make

There is an executable file in the bin directory under the build directory.

Guess you like

Origin blog.csdn.net/qq_38830492/article/details/128764689