datasetPreProcessing {ZooID}R Documentation

datasetPreProcessing

Description

Preprocessing a directory structure of zooplankton images, and saving the resultant images to another directory structure

Usage

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

Arguments

zpFileDir

Directory of subdirectories containing zooplankton images

zpSaveDir

Directory to setup the subdirectory structure for the extracted images

minPixels

Integer specifying the minimum number of pixels allowed in an extracted image See "batch_imagePreProcessing" for details [Default: 5000]

imageExtension

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

verbose

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

Examples

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

## End(Not run)

[Package ZooID version 0.2.0 Index]