ZED2小问题

1.ZED测试

cd /usr/local/zed/tools
./ZED_Explorer

到这里都没问题 

 然后下面两个都会报错

./ZED_Depth_Viewer
./ZED_Sensor_Viewer

error while loading shared libraries:libopenblas.so.0

sudo apt-get install libopenblas-dev

error while loading shared libraries:libturbojpeg.so.0

sudo apt-get install libturbojpeg-dev

如果显示失败

sudo apt-get update

然后再尝试安装

2.安装get_python_api.py

cd /usr/local/zed
python get_python_api.py

报错ImportError:No module named request

sudo apt-get install python-requests

还是报相同的错

python3 get_python_api.py

报错ERROR:pip's dependency resolver does not currently take into account all the packages that are installed.This behaviour is the source of the following dependency conflicts.

uff 0.6.9 requires protobuf>=3.3.0,but you have protobuf 3.0.0 which is incompatible.

pip install --upgrade protobuf
python3 get_python_api.py

3.测试安装

新建python文件

mkdir TEST
cd TEST
touch test.py
vim test.py
import pyzed.sl as sl


def main():
    # Create a Camera object
    zed = sl.Camera()

    # Create a InitParameters object and set configuration parameters
    init_params = sl.InitParameters()
    init_params.sdk_verbose = False

    # Open the camera
    err = zed.open(init_params)
    if err != sl.ERROR_CODE.SUCCESS:
        exit(1)

    # Get camera information (ZED serial number)
    zed_serial = zed.get_camera_information().serial_number
    print("Hello! This is my serial number: {0}".format(zed_serial))

    # Close the camera
    zed.close()


if __name__ == "__main__":
    main()

先按esc键,再输入

:wq
python test.py

报错ImportError:No module named pyzed.sl

python3 test.py

报错Illegal instruction(core dumped)

export OPENBLAS_CORETYPE=ARMV8
python3 test.py

猜你喜欢

转载自blog.csdn.net/kchenlyee/article/details/129728037