【问题标题】:String to numpy array image字符串到 numpy 数组图像
【发布时间】:2022-11-25 10:50:35
【问题描述】:

我想将字符串转换为图像。

我想要的是:

输入=字符串
输出 = 2D 或 3D numpy 数组图像,可能由 0、255 组成

是否有任何包或模块这样做?

谢谢你。

【问题讨论】:

    标签: python string image numpy text


    【解决方案1】:

    你可以使用 opencv2.putText

    https://docs.opencv.org/4.x/dc/da5/tutorial_py_drawing_functions.html

    opencv-python 与 numpy.ndarray 一起工作

    【讨论】:

      猜你喜欢
      • 2012-06-14
      • 2022-01-22
      • 1970-01-01
      • 1970-01-01
      • 2013-05-16
      • 2017-04-29
      • 2021-12-27
      • 2016-08-09
      • 2020-07-31
      相关资源
      最近更新 更多