Learn R Programming

colorizer (version 0.1.0)

colorize: Call Image Colorization API

Description

colorize calls the DeOldify image colorization API on DeepAI.

Usage

colorize(
  img,
  key = "quickstart-QUdJIGlzIGNvbWluZy4uLi4K",
  pane = c("plot", "view", "none")
)

Arguments

img

path or URL to the images to be colorized.

key

DeepAI API key.

pane

defines in which pane the image is displayed: plot, view or none.

Value

A tibble with the file locations of the original images and the response URLs to the colorized images. The latter expire after some time. It is recommended to save the colorized images.

Details

With the default API key a few queries are possible. After registration on DeepAI https://deepai.org/, around 5000 free requests are currently possible.

Examples

Run this code
# NOT RUN {
# Call image colorization API
colorize(img = "https://upload.wikimedia.org/wikipedia/commons/9/9e/Breadfruit.jpg")
# }

Run the code above in your browser using DataLab