📅  最后修改于: 2022-03-11 14:45:04.404000             🧑  作者: Mango
# You could use numpy directly, instead of cv_bridge
import numpy as np
im = np.frombuffer(image_data.data, dtype=np.uint8).reshape(image_data.height, image_data.width, -1)