I am not sure why i am getting this error returned when i am using the following code;
faceDetector = 'vision.CascadeObjectDetector';
I = imread('INSERT PICTURE LOCATION HERE');
bboxes = faceDetector(I);
IFaces = insertObjectAnnotation(I,'rectangle',bboxes,'Face');
I am not sure what this error means as the pixel values i am using are all positive values so I am very confused. What can I do to achieve a successful output?