R package for Creating Array Data from 2D Image Thumbnails via Google Image Search
CRAN/GoogleImage2Array, GitHub/GoogleImage2Array, rdrr.io/GoogleImage2Array
install.packages("BiocManager")
BiocManager::install("EBImage")
install.packages("GoogleImage2Array", repos="http://cran.r-project.org")
type the code below in the R console window
install.packages(c("devtools", "BiocManager"), repos="http://cran.r-project.org")
BiocManager::install("EBImage")
devtools::install_github("kumeS/GoogleImage2Array")
or install from the source file
git clone https://github.com/kumeS/GoogleImage2Array
R CMD INSTALL GoogleImage2Array
library(GoogleImage2Array)
#Search by persian cat
query <- "persian cat"
CatImg <- GoogleImage2array(query)
#show info
str(CatImg)
#$ array: num [1:20, 1:64, 1:64, 1:3] 0.0141 0.7029 0.7608 0.111 0.3398 ...
#$ query: chr "persian cat"
#show CatImg
display.array(CatImg)
You should have the results of the tiled images as follows.
Copyright (c) 2021 Satoshi Kume
Released under the Artistic License 2.0.