Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe authored Oct 7, 2024
1 parent cb052a5 commit a7ef2cf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,6 @@ model = torch.hub.load("cvg/GeoCalib", "GeoCalib", trust_repo=True)

</details>

### Partial calibration
When either the intrinsics or the gravity are already known, they can be provided:

```python
# known intrinsics:
result = model.calibrate(image, priors={"focal": focal_length_tensor})

# known gravity:
result = model.calibrate(image, priors={"gravity": gravity_direction_tensor})
```

### Camera models
GeoCalib currently supports the following camera models via the `camera_model` parameter:
1. `pinhole` (default) models only the focal lengths `fx` and `fy` but no lens distortion.
Expand All @@ -131,6 +120,17 @@ result = model.calibrate(image, camera_model="simple_radial") # or pinhole, sim
```
The principal point is assumed to be at the center of the image and is not optimized. Additional models can be implemented by extending the [`Camera`](geocalib/camera.py) object.

### Partial calibration
When either the intrinsics or the gravity are already known, they can be provided as follows:

```python
# known intrinsics:
result = model.calibrate(image, priors={"focal": focal_length_tensor})

# known gravity:
result = model.calibrate(image, priors={"gravity": gravity_direction_tensor})
```

### Multi-image calibration
To calibrate multiple images captured by the same camera, pass a list of images to GeoCalib:
```python
Expand Down

0 comments on commit a7ef2cf

Please sign in to comment.