detect_MD_batch: Apply MegaDetector to a Given Batch of Images

View source: R/detect.R

detect_MD_batchR Documentation

Apply MegaDetector to a Given Batch of Images

Description

Apply MegaDetector to a Given Batch of Images

Usage

detect_MD_batch(
  detector,
  image_file_names,
  checkpoint_path = NULL,
  checkpoint_frequency = -1,
  confidence_threshold = 0.1,
  quiet = TRUE,
  image_size = NULL,
  file_col = "Frame"
)

Arguments

detector

preloaded md model

image_file_names

list of image filenames, a single image filename, or folder

checkpoint_path

path to checkpoint file

checkpoint_frequency

write results to checkpoint file every N images

confidence_threshold

only detections above this threshold are returned

quiet

print debugging statements when false, defaults to true

image_size

overrides default image size, 1280

file_col

select which column if image_file_names is a manifest

Value

list of dictionaries of MegaDetector detections

Examples

## Not run: mdres <- detectMD_batch(md_py, allframes$Frame)

icr-ctl/animl documentation built on Feb. 16, 2025, 11:33 p.m.