GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — zed-python-api/src at master · stereolabs/zed-python-api

Expand file tree

/

src

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

src

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
pyzed
pyzed
 
 
README.md
README.md
 
 
generate_pyzed_stubs.py
generate_pyzed_stubs.py
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
requirements_legacy.txt
requirements_legacy.txt
 
 
setup.py
setup.py
 
 

README.md

Outline

Stereolabs ZED - Python API Sources (Advanced)

To install and use the Python wrapper please refer to this page instead

Getting started

Prerequisites

Please check your python version with the following command. The result should be 3.8 or higher.

python --version
  • ZED SDK 5.6 and its dependency CUDA
  • Python 3.8+ x64
  • C++ compiler

Python Dependencies:

  • Use requirements.txt for Python 3.9+ with modern dependencies
  • Use requirements_legacy.txt for older Python versions or legacy setups

Install dependencies with:

# For modern Python environments (recommended)
pip install -r requirements.txt

# For legacy Python environments
pip install -r requirements_legacy.txt

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.

Build the plugin

python setup.py build
python setup.py install
python -m pip wheel .
python -m pip install {WHEEL_FILE}.whl --force-reinstall

or on Linux

python3 setup.py build
python3 setup.py install
python3 -m pip wheel .
python3 -m pip install {WHEEL_FILE}.whl --force-reinstall

Tips

Error on compilation

If an error occurs during the compilation, make sure that you're using the latest ZED SDK and that you installed an x64 version of python. python -c "import platform; print(platform.architecture())"

The packages .pyd for Windows or .so for Linux will be generated and installed.

You can use python setup.py cleanall to remove every cpp files generated and build directory.

Make sure to be out of the plugin driectory when using it. It will prevent Python from considering the pyzed folder of the plugin as the pyzed package.

Contributing

Feel free to open an issue if you find a bug, or a pull request for bug fixes, features or other improvements.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.