Description Usage Arguments Value Author(s) Examples
View source: R/display.array.R
This function is to create the R array/tensor from 2D image obtained from Google image search.
1 | display.array(x, Save = FALSE, file_path = NULL)
|
x |
a list obtained by the GoogleImage2array function. |
Save |
a logical. Whether to save images locally or not. if TRUE, save locally. |
file_path |
a character. a directory to save the image file. |
image
Satoshi Kume
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(EBImage)
# Simple examples
query <- "persian cat"
CatImg <- GoogleImage2array(query)
#show images
display.array(CatImg)
query <- "Shiba inu"
DogImg <- GoogleImage2array(query)
#show images
display.array(DogImg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.