Practical overview
When it fits
Use Monoloco when developing or researching a Python image-processing workflow that starts from human pose keypoints and needs monocular or stereo 3D localization. Review camera intrinsics when interpreting absolute distances.
Who it is for
- Computer-vision developers building image-based human-localization workflows.
- Researchers exploring monocular or stereo 3D pedestrian localization, orientation estimation, or social-distancing analysis.
Documented uses
- Estimate people’s 3D locations from monocular images.
- Estimate people’s 3D locations using stereo images.
- Obtain 2D human keypoints through the documented OpenPifPaf mode.
- Explore body-orientation and social-distancing workflows.
Requirements & limits
The README documents installation with pip. It identifies the software as AGPL-licensed and notes commercial licensing through the EPFL Technology Transfer Office.
- The workflow relies on OpenPifPaf for 2D human pose detection before 3D localization.
- The command interface distinguishes monocular, stereo, and keypoints-only modes.
- Absolute distance estimates are affected by camera intrinsics; the README describes KITTI-specific parameters and default nuScenes camera assumptions for other cases.
- The README says a GPU is optional but recommended for real-time performance.
- The project documents JSON output and frontal or bird’s-eye visualizations.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Monoloco and inspect its command options
Install the library with pip and view the documented command-line options.
Before you start
- Python 3.6, 3.7, or 3.8 is listed for the tested installation setup.
- The README describes package installation with pip and virtual environments.
- A GPU is optional; the README recommends one for real-time performance.
Steps
Ensure there is no folder named monoloco in the current directory.
Run the command below.
pip3 install monolocoRun the command below to inspect the available subcommands.
python3 -m monoloco.run --help
Expected outcome
The documented package installation is followed by the main command-line help.
Guide limitations
- The README says installation was tested on OSX and Linux with the listed Python versions.
- This setup guide does not run a prediction or verify a local installation.
Run a monocular prediction on an image
Use the documented prediction interface to request monocular 3D localization for an image.
Before you start
- Monoloco installed in a Python environment.
- An input image and an output directory.
- The README example also supplies a ground-truth JSON file.
Steps
Use the command below with the image path.
python3 -m monoloco.run predictSelect monocular mode with
--mode mono, which the README identifies as the default.Set an output directory with
-oand, if needed, set image scaling with--long-edge.Add
--path_gtwith a ground-truth JSON file when using the documented comparison example.
Expected outcome
The prediction command requests monocular human 3D localization; documented output options include visualizations and JSON.
Guide limitations
- The README states that models are downloaded automatically.
- Absolute distances depend on camera intrinsic parameters; the documented focal-length argument is
--focal. - The README example includes a ground-truth file, but does not make that file a general requirement for prediction.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 18 October 2026
- Original website title
- vita-epfl/monoloco · Official homepage title · retained in its source language

