Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Open3d cannot read images of .bmp type

Open YSPplayer opened this issue 1 year ago • 1 comments

Checklist

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

YSPplayer avatar Jan 17 '24 01:01 YSPplayer

same here

MathewCrespo avatar May 14 '24 02:05 MathewCrespo