Debian Codegraph @

doc/pycolmap/index.rst

raw
1 .. _pycolmap/index:
2
3 PyCOLMAP
4 ========
5
6 PyCOLMAP exposes to Python most capabilities of COLMAP.
7
8 Installation
9 ------------
10
11 Pre-built wheels for Linux, macOS, and Windows can be installed using pip::
12
13 pip install pycolmap
14
15 The wheels are automatically built and pushed to `PyPI
16 <https://pypi.org/project/pycolmap/>`_ at each release.
17 To benefit from GPU acceleration, wheels built for CUDA 12 (only for Linux - for now)
18 are available under the `package pycolmap-cuda12 <https://pypi.org/project/pycolmap-cuda12/>`_.
19
20 To build PyCOLMAP from source, follow these steps:
21
22 1. Install COLMAP from source following :ref:`installation`.
23 2. Build PyCOLMAP:
24
25 * On Linux and macOS::
26
27 python -m pip install .
28
29 * On Windows, after installing COLMAP via VCPKG, run in powershell::
30
31 python -m pip install . `
32 --cmake.define.CMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" `
33 --cmake.define.VCPKG_TARGET_TRIPLET="x64-windows"
34
35 Some features, such as cost functions, require that `PyCeres
36 <https://github.com/cvg/pyceres>`_ is installed in the same manner as PyCOLMAP,
37 so either from PyPI or from source.
38
39 API
40 -----
41
42 .. toctree::
43 :maxdepth: 2
44
45 pycolmap
46 cost_functions