powered by
Classifies Crops Using Specified Models
predictSpecies( input, model, resize = 456, standardize = FALSE, batch = 1, workers = 1 )
a matrix of likelihoods for each class for each image
either dataframe with MD crops or list of filenames
models with which to classify species
resize images before classification, defaults to 299x299px
standardize images, defaults to FALSE
number of images processed in each batch (keep small)
number of cores
if (FALSE) { pred <- classifySpecies(imagesallanimal, paste0(modelfile, ".h5"), resize = 456, standardize = FALSE, batch_size = 64, workers = 8) }
Run the code above in your browser using DataLab