Learn R Programming

animl (version 3.2.0)

classify: Infer Species for Given Detections

Description

Infer Species for Given Detections

Usage

classify(
  model,
  detections,
  resize_width = 480,
  resize_height = 480,
  file_col = "filepath",
  crop = TRUE,
  normalize = TRUE,
  batch_size = 1,
  num_workers = 1,
  device = NULL,
  out_file = NULL
)

Value

detection manifest with added prediction and confidence columns

Arguments

model

loaded classifier model

detections

manifest of animal detections

resize_width

image width input size

resize_height

image height input size

file_col

column in manifest containing file paths

crop

use bbox to crop images before feeding into model

normalize

normalize the tensor before inference

batch_size

batch size for generator

num_workers

number of processes

device

send model to the specified device

out_file

path to csv to save results to

Examples

Run this code
if (FALSE) animals <- classify(classifier, animals, file_col='filepath')

Run the code above in your browser using DataLab