MATLAB: Error in function ssdLayer

object detectionundefined function

I'm getting the following error when I try to run function ssdLayers: ???
Undefined function 'ssdLayers' for input arguments of type 'double'.
This is my code.
imageSize = [300 300 3];
numClasses = width(vehicleDataset)-1;
baseNetwork = 'resnet50';
lgraph = ssdLayers(imageSize,numClasses,baseNetwork);
Thank you.

Best Answer

The function ssdLayers is introduced in R2020a, make sure that the MATLAB version you are using is R2020a and you have Computer Vision Toolbox installed.
Related Question