Metadata-Version: 2.4
Name: panodac
Version: 0.1.0
Summary: Plug-and-play metric depth estimation for any camera (perspective, fisheye, 360°). Based on Depth Any Camera (CVPR 2025).
Project-URL: Homepage, https://github.com/yuliangguo/depth_any_camera
Project-URL: Repository, https://github.com/YOUR_USERNAME/panodac
Project-URL: Documentation, https://github.com/YOUR_USERNAME/panodac#readme
Author: Yuliang Guo, Sparsh Garg
License: MIT License
        
        Copyright (c) 2025 Sparsh Garg
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: 360,computer-vision,depth-estimation,fisheye,monocular-depth,panorama,pytorch
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: >=3.9
Requires-Dist: einops>=0.6.0
Requires-Dist: huggingface-hub>=0.20.0
Requires-Dist: numpy<2.0.0
Requires-Dist: opencv-python>=4.5.0
Requires-Dist: pillow>=9.0.0
Requires-Dist: scipy>=1.10.0
Requires-Dist: timm>=0.9.0
Requires-Dist: torch>=2.0.0
Requires-Dist: torchvision>=0.15.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-terminal>=4.6.0; extra == 'docs'
Requires-Dist: mkdocs>=1.5.0; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=0.24.0; extra == 'docs'
Requires-Dist: pymdown-extensions>=10.0.0; extra == 'docs'
Description-Content-Type: text/markdown

# panodac

Metric depth estimation for any camera. Perspective, fisheye, 360° panorama.

Based on Depth Any Camera (CVPR 2025).

## Installation

```bash
pip install panodac
```

## Usage

```python
import panodac

depth = panodac.predict("photo.jpg")
# depth is a numpy array (H, W) with metric depth in meters
```

## Models

| Model               | Use Case | Speed | Quality |
| ------------------- | -------- | ----- | ------- |
| `outdoor-resnet101` | Outdoor  | Fast  | Good    |
| `outdoor-swinl`     | Outdoor  | Slow  | Best    |
| `indoor-resnet101`  | Indoor   | Fast  | Good    |
| `indoor-swinl`      | Indoor   | Slow  | Best    |

Models auto-download from HuggingFace on first use (~500MB each).

```python
# Use a specific model
depth = panodac.predict("panorama.jpg", model="outdoor-swinl")

# List available models
print(panodac.list_models())
# ['outdoor-resnet101', 'outdoor-swinl', 'indoor-resnet101', 'indoor-swinl']
```

## Documentation

See [yz3440.github.io/panodac](https://yz3440.github.io/panodac/) for full API reference and examples.

## Credits

Based on **Depth Any Camera (DAC)** by Yuliang Guo et al.

- [Paper](https://arxiv.org/abs/2501.02464)
- [Original Repository](https://github.com/yuliangguo/depth_any_camera)
- [Project Page](https://depth-any-camera.github.io/)

```bibtex
@article{guo2025depthany,
  title={Depth Any Camera: Zero-Shot Metric Depth Estimation from Any Camera},
  author={Guo, Yuliang and Garg, Sparsh and Ren, Xuan and ElSayed, Mohamed and Guizilini, Vitor},
  journal={CVPR},
  year={2025},
}
```

## License

MIT
