You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

magick::image_get_artifact()函数artifact参数的可选值有哪些?

magick::image_get_artifact() 参数疑问及图像颜色提取测试

artifact:字符串,指定要提取的artifact名称,可参考image_deskew的示例。

我不清楚该参数的可选值,目前想要提取图像中的颜色,测试代码如下:

library(magick)
#> 已链接到ImageMagick 6.9.12.3
#> 启用特性:cairo, freetype, fftw, ghostscript, heic, lcms, pango, raw, rsvg, webp
#> 禁用特性:fontconfig, x11

img <- image_read('https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png')
image_get_artifact(img, 'colorspace')
#> [1] ""

于2023-12-06使用reprex v2.0.2生成

内容的提问来源于stack exchange,提问作者joshbrows

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 13:21:25