16进制颜色值转RGB颜色值
常规项目:# 16进制颜色格式颜色转换为RGB格式def hex_to_rgb(hex): r = int(hex[1:3],16) g = int(hex[3:5],16) b = int(hex[5:7], 16) return r,g,bdef add_bg_color(image, rgb): bg_img = np.zeros((image.shape[0], image.shape[1], 3), np.uint8) bg_img[:, :,