
Count Number of Instances of MegaDetector/SpeciesNet Categories in Images
Source:R/MegaDetector.R
megadet_get_counts.RdCounts instances of each class for MegaDetector/SpeciesNet across images in JSON data.
Arguments
- json
character vector or nested list object from
jsonlite::read_json(). The JSON file or loaded JSON data to filter on.- type
character. "detection" if counts should be done from MegaDetector's gross categories or "classification" for counts from SpeciesNet's species-level classifications.
- map_names
boolean. If MegaDetector and SpeciesNet names should be mapped from numeric values to the values provided in the
detection_categoriesandclassification_categoriestags. These are typically gross (human, animal, vehicle) and taxonomic classifications respectively.