Skip to content

Commit 7f7b973

Browse files
authored
Adding ZED SDK 5.0.0 support (#246)
* Include GPU support from #241
1 parent 55e7520 commit 7f7b973

File tree

6 files changed

+1665
-664
lines changed

6 files changed

+1665
-664
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ This package lets you use the ZED stereo camera in Python 3. The Python API is a
1111

1212
To start using the ZED SDK in Python, you will need to install the following dependencies on your system:
1313

14-
- [ZED SDK 4.1](https://www.stereolabs.com/developers/) and its dependency [CUDA](https://developer.nvidia.com/cuda-downloads)
14+
- [ZED SDK 5.0](https://www.stereolabs.com/developers/) and its dependency [CUDA](https://developer.nvidia.com/cuda-downloads)
1515

16-
For the ZED SDK 3.8 compatible version, use the [zedsdk_3.X branch](https://github.com/stereolabs/zed-python-api/tree/zedsdk_3.X) or the [3.8 release tag](https://github.com/stereolabs/zed-python-api/releases/tag/v3.8)
16+
For the ZED SDK 4.2 compatible version, use the [zedsdk_4.X branch](https://github.com/stereolabs/zed-python-api/tree/zedsdk_4.X) or the [4.2 release tag](https://github.com/stereolabs/zed-python-api/releases/tag/v4.2)
1717

18-
- Python 3.7+ x64 ([Windows installer](https://www.python.org/ftp/python/3.7.6/python-3.7.6-amd64.exe))
19-
- [Cython 0.28](http://cython.org/#download)
20-
- [Numpy 1.13](https://www.scipy.org/scipylib/download.html)
18+
- Python 3.8+ x64
19+
- [Cython >= 3.0.0](http://cython.org/#download)
20+
- [Numpy >= 2.0](https://numpy.org/install/)
2121
- OpenCV Python (optional)
2222
- PyOpenGL (optional)
2323

24-
Please check your python version with the following command. The result should be 3.7 or higher.
24+
Please check your python version with the following command. The result should be 3.8 or higher.
2525

2626
```
2727
python --version
@@ -37,7 +37,7 @@ The sample dependencies can also be installed via pip
3737
python -m pip install opencv-python pyopengl
3838
```
3939

40-
**Note:** On Linux, it is advised to use the `python3` command instead of `python` which by default point to python 2.7. To do so, the following packages `python3-dev` and `python3-pip` need to be installed.
40+
**Note:** On Linux, it is advised to use the `python3` command instead of `python` which by default may point to python 2.7. To do so, the following packages `python3-dev` and `python3-pip` need to be installed.
4141

4242
## Installing the Python API
4343

@@ -65,19 +65,19 @@ $ python get_python_api.py
6565
Detected platform:
6666
linux_x86_64
6767
Python 3.11
68-
ZED SDK 4.0
68+
ZED SDK 5.0
6969
# Downloads and install the whl package
70-
-> Checking if https://download.stereolabs.com/zedsdk/4.0/whl/linux_x86_64/pyzed-4.0-cp311-cp311-linux_x86_64.whl exists and is available
71-
-> Found ! Downloading python package into /home/user/pyzed-4.0-cp311-cp311-linux_x86_64.whl
70+
-> Checking if https://download.stereolabs.com/zedsdk/5.0/whl/linux_x86_64/pyzed-5.0-cp311-cp311-linux_x86_64.whl exists and is available
71+
-> Found ! Downloading python package into /home/user/pyzed-5.0-cp311-cp311-linux_x86_64.whl
7272
-> Installing necessary dependencies
7373
...
74-
Successfully installed pyzed-4.0
74+
Successfully installed pyzed-5.0
7575
```
7676
7777
To install it later or on a different environment run :
7878
7979
```bash
80-
$ python -m pip install --ignore-installed /home/user/pyzed-4.0-cp311-cp311-linux_x86_64.wh
80+
$ python -m pip install --ignore-installed /home/user/pyzed-5.0-cp311-cp311-linux_x86_64.wh
8181
```
8282
8383
That's it ! The Python API is now installed.

src/README.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66

77
### Prerequisites
88

9-
- [ZED SDK 4.1](https://www.stereolabs.com/developers/) and its dependency [CUDA](https://developer.nvidia.com/cuda-downloads)
10-
- Python 3.7+ x64
11-
- C++ compiler (VS2017 recommended)
12-
- [Cython 0.26](http://cython.org/#download)
13-
- [Numpy 1.13.1](https://www.scipy.org/scipylib/download.html)
9+
- [ZED SDK 5.0](https://www.stereolabs.com/developers/) and its dependency [CUDA](https://developer.nvidia.com/cuda-downloads)
10+
- Python 3.8+ x64
11+
- C++ compiler
12+
- [Cython >= 3.0.0](http://cython.org/#download)
13+
- [Numpy >= 2.0](https://numpy.org/install/)
14+
- CuPy (optional)
1415

15-
The ZED SDK 3.X compatible API can be found in the [zedsdk_3.X branch](https://github.com/stereolabs/zed-python-api/tree/zedsdk_3.X).
16+
The ZED SDK 4.X compatible API can be found in the [zedsdk_4.X branch](https://github.com/stereolabs/zed-python-api/tree/zedsdk_4.X).
1617

17-
Please check your python version with the following command. The result should be 3.7 or higher.
18+
Please check your python version with the following command. The result should be 3.8 or higher.
1819

1920
```
2021
python --version
@@ -37,15 +38,22 @@ pip3 install -r requirements.txt
3738
```
3839
python setup.py build
3940
python setup.py install
41+
python -m pip wheel .
42+
python -m pip install {WHEEL_FILE}.whl --force-reinstall
4043
```
4144

4245
or on Linux
4346

4447
```
4548
python3 setup.py build
4649
python3 setup.py install
50+
python3 -m pip wheel .
51+
python3 -m pip install {WHEEL_FILE}.whl --force-reinstall
4752
```
4853

54+
#### Tips
55+
56+
##### Error on compilation
4957

5058
If an __error__ occurs during the compilation, make sure that you're using the latest [ZED SDK](https://www.stereolabs.com/developers/) and that you installed an x64 version of python. `python -c "import platform; print(platform.architecture())"`
5159

0 commit comments

Comments
 (0)