Open3D
Open3D copied to clipboard
Open3d cannot read images of .bmp type
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
mainbranch).
Describe the issue
Open3d cannot read images of. bmp type
Steps to reproduce the bug
import open3d as o3d
import matplotlib.pyplot as plt
import cv2
if __name__ == "__main__":
...
#result.bmp size:1.19M
texture = o3d.io.read_image("C:\\Users\\Desktop\\news\\result.bmp") //load fail
texture = cv2.imread("C:\\Users\\Desktop\\news\\result.bmp") //cv2 load success
mesh.textures = [o3d.geometry.Image(texture)]
Error message
[Open3D WARNING] Read geometry::Image failed: file extension bmp unknown
Expected behavior
Read external images as textures for the model.
Open3D, Python and System information
- Operating system: Windows 10 64-bit
- Python version: Python 3.10
- Open3D version: output from python: 0.18.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip
Additional information
No response
same here