简体   繁体   English

如何使用Julia中的图像包向图像添加文本?

[英]How to add text to an image using package, Images in Julia?

I would like to add text to an image using Images in julia. 我想使用julia中的Images向图像添加文本。
I googled but results are not much helpful in this regard! 我用谷歌搜索,但结果在这方面没有太大帮助!
Please guide me adding text at specified co-ordintes to an image using Images in julia. 请指导我使用julia中的“图像”将指定坐标处的文本添加到图像。

I am not aware of a solution using only Images, but you can do something like this with Plots and Images 我不知道使用图像的解决方案,但是您可以使用“图和图像”进行类似的操作

using Plots, Images
img = load("test.png")
plot(img)
annotate!(1.,1.,text("test",20))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM