display.array {GoogleImage2Array} | R Documentation |
display.array: display 4d array as a tiled image.
Description
This function is to create the R array/tensor from 2D image obtained from Google image search.
Usage
display.array(x, Save = FALSE, file_path = NULL)
Arguments
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. |
Value
image
Author(s)
Satoshi Kume
Examples
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)
[Package GoogleImage2Array version 0.99.2 Index]