Skip to main content

description

Project description



Documentation actions codecov PyPI Percentage of issues still open

Introduction

English | 简体中文

XRPrimer is a fundational library for XR-related algorithms. The XRPrimer provides reusable data structures, efficient operaters and extensible interfaces both in C++ and Python.

Major Features

  • Various camera models and conversion tools (Pinhole, Fisheye, Omni etc.)
  • Basic 3D operations (Triangulation, Projection etc.)
  • Multi-camera extrinsic calibration tools
  • Rendering and visualization tools

Operation Systems

It currently supports the following systems.

  • Linux
  • iOS

Installation

Python

If using xrprimer in a Python project, it can be installed by:

pip install xrprimer

If you want to use the latest updates of xrprimer, please refer to Python Installation for detailed installation.

C++

If using xrprimer in a C++ project, please refer to C++ Installation for compilation and test.

Getting started

Use XRPrimer in Python projects

The below code is supposed to run successfully upon you finish the installation.

python -c "import xrprimer; print(xrprimer.__version__)"

Use XRPrimer in C++ projects

An example is given below to show how to link xrprimer in C++ projects. More details can be found here.

cmake_minimum_required(VERSION 3.16)

project(sample)

# set path for find XRPrimer package (config mode)
set(XRPrimer_DIR "<package_path>/lib/cmake")
find_package(XRPrimer REQUIRED)

add_executable(sample sample.cpp)

target_link_libraries(sample XRPrimer::xrprimer)

FAQ

If you face some installation issues, you may first refer to this Frequently Asked Questions.

License

The license of our codebase is Apache-2.0. Note that this license only applies to code in our library, the dependencies of which are separate and individually licensed. We would like to pay tribute to open-source implementations to which we rely on. Please be aware that using the content of dependencies may affect the license of our codebase. Refer to LICENSE to view the full license.

Citation

If you find this project useful in your research, please consider cite:

@misc{xrprimer,
    title={OpenXRLab Foundational Library for XR-related Algorithms},
    author={XRPrimer Contributors},
    howpublished = {\url{https://github.com/openxrlab/xrprimer}},
    year={2022}
}

Contributing

We appreciate all contributions to improve XRPrimer. Please refer to CONTRIBUTING.md for the contributing guideline.

Acknowledgement

XRPrimer is an open source project that is contributed by researchers and engineers from both the academia and the industry. We appreciate all the contributors who implement their methods or add new features, as well as users who give valuable feedbacks. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible toolkit to reimplement existing methods and develop their own new models.

Projects in OpenXRLab

  • XRPrimer: OpenXRLab foundational library for XR-related algorithms.
  • XRSLAM: OpenXRLab Visual-inertial SLAM Toolbox and Benchmark.
  • XRSfM: OpenXRLab Structure-from-Motion Toolbox and Benchmark.
  • XRLocalization: OpenXRLab Visual Localization Toolbox and Server.
  • XRMoCap: OpenXRLab Multi-view Motion Capture Toolbox and Benchmark.
  • XRMoGen: OpenXRLab Human Motion Generation Toolbox and Benchmark.
  • XRNeRF: OpenXRLab Neural Radiance Field (NeRF) Toolbox and Benchmark.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

xrprimer-0.7.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl (424.5 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

xrprimer-0.7.1-pp310-pypy310_pp73-macosx_10_9_x86_64.whl (452.2 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

xrprimer-0.7.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl (424.6 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

xrprimer-0.7.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (452.1 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

xrprimer-0.7.1-pp38-pypy38_pp73-macosx_11_0_arm64.whl (424.7 kB view hashes)

Uploaded PyPy macOS 11.0+ ARM64

xrprimer-0.7.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (452.4 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

xrprimer-0.7.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (451.8 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

xrprimer-0.7.1-cp311-cp311-win_amd64.whl (799.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

xrprimer-0.7.1-cp311-cp311-macosx_11_0_arm64.whl (424.5 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

xrprimer-0.7.1-cp311-cp311-macosx_10_9_x86_64.whl (451.8 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

xrprimer-0.7.1-cp310-cp310-win_amd64.whl (799.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

xrprimer-0.7.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

xrprimer-0.7.1-cp310-cp310-macosx_11_0_arm64.whl (424.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

xrprimer-0.7.1-cp310-cp310-macosx_10_9_x86_64.whl (451.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

xrprimer-0.7.1-cp39-cp39-win_amd64.whl (800.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

xrprimer-0.7.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

xrprimer-0.7.1-cp39-cp39-macosx_11_0_arm64.whl (424.7 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

xrprimer-0.7.1-cp39-cp39-macosx_10_9_x86_64.whl (452.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

xrprimer-0.7.1-cp38-cp38-win_amd64.whl (806.7 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

xrprimer-0.7.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

xrprimer-0.7.1-cp38-cp38-macosx_11_0_arm64.whl (424.2 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

xrprimer-0.7.1-cp38-cp38-macosx_10_9_x86_64.whl (451.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

xrprimer-0.7.1-cp37-cp37m-win_amd64.whl (804.8 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

xrprimer-0.7.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

xrprimer-0.7.1-cp37-cp37m-macosx_10_9_x86_64.whl (443.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

xrprimer-0.7.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.2 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page