batchPreProcessing {ZooID}R Documentation

batchPreProcessing

Description

Preprocessing a directory of zooplankton images

Usage

batchPreProcessing(
  zpFileDir,
  zpSaveDir,
  minPixels = 5000,
  imageExtension = ".jpg",
  noRepeats = TRUE,
  verbose = TRUE
)

Arguments

zpFileDir

Directory full of zooplankton images to extract

zpSaveDir

Directory to save the extracted images to

minPixels

Integer specifying the minimum number of pixels allowed in an extracted image Any extracted image with fewer pixels will not be saved [Default: 5000 (~70 by 70 pixels)]

imageExtension

String specifying the extension the images will have (must include ".") [Default: ".jpg"]

noRepeats

Boolean variable to decide whether to ignore images that are already present in the save dir, or not [Default: TRUE]

verbose

Boolean variable indicating whether the script should print info to console [Default: TRUE]

Examples

## Not run: 
zpFileDir <- 'Users/$(whoami)/Images/ZooplanktonImages/ostracod'
zpSaveDir <- 'Users/$(whoami)/Images/ExtractedImages/ostracod'
batchPreProcessing(zpFileDir, zpSaveDir)

## End(Not run)

[Package ZooID version 0.2.0 Index]