countObjects
Syntax
Description
counts objects within an image count = countObjects(counter,I)I based on exemplar image patches
containing objects.
Note
This functionality requires Deep Learning Toolbox™ and the Automated Visual Inspection Library for Computer Vision Toolbox™. You can install the Automated Visual Inspection Library for Computer Vision Toolbox from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
specifies options using additional name-value arguments in addition to any combination of
arguments from previous syntaxes. For example, count = countObjects(___,Name=Value)MiniBatchSize=4
specifies the mini-batch size as 4.
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2025a