isl-org / isl-org/Open3D

Setting view (read_pinhole_camera_parameters) does not work

Open
#6,724 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### Describe the issue

When setting a pinhole camera parameters from a json to fixate a view in open3 0.17 and 0.18 does not work, it works with older versions.

### Steps to reproduce the bug

```python
code:
vis = o3d.visualization.Visualizer()
vis.create_window()
ctr = vis.get_view_control()
param = o3d.io.read_pinhole_camera_parameters(camera_params)
vis.add_geometry(geometry)
ctr.convert_from_pinhole_camera_parameters(param).

on some first image press P on keyboard, it should save a json file with camera information (then rename it to params.json), when reloading the program it should have the same camera position, but does not
```

### Error message

_No response_

### Expected behavior

_No response_

### Open3D, Python and System information

```markdown
- Operating system: Windows 11 64-bit
- Python version: Python 3.10
- Open3D version: output from python: 0.16 -- 0.18
- System architecture: x86
- How did you install Open3D?: pip
```

### Additional information

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.