predictSpecies {animl}R Documentation

Classifies Crops Using Specified Models

Description

Classifies Crops Using Specified Models

Usage

predictSpecies(
  input,
  model,
  resize = 456,
  standardize = FALSE,
  batch = 1,
  workers = 1
)

Arguments

input

either dataframe with MD crops or list of filenames

model

models with which to classify species

resize

resize images before classification, defaults to 299x299px

standardize

standardize images, defaults to FALSE

batch

number of images processed in each batch (keep small)

workers

number of cores

Value

a matrix of likelihoods for each class for each image

Examples

## Not run: 
pred <- classifySpecies(imagesallanimal, paste0(modelfile, ".h5"),
                      resize = 456, standardize = FALSE, batch_size = 64, workers = 8)

## End(Not run)

[Package animl version 1.1.0 Index]