MATLAB Answers

0

Error in webcam_obj​ect_classi​fication when using full HD webcam

Asked by hana razak on 5 Feb 2019
Latest activity Edited by hana razak on 5 Feb 2019
Hi,
I got trouble to use a full HD stream webcam in MATLAB R2018a. Here are the coding,
clear
% Connect to the camera
camera = webcam;
% Load the detector
load('detector1k')
% Preview video stream from the device
while true
picture = camera.snapshot; % Take a picture
label = classify(detector1k, picture); % Classify the picture
image(picture);
title(char(label));
end
and the error,
Dot indexing is not supported for variables of this type.
Error in webcam_object_classification (line 13)
picture = camera.snapshot; % Take a picture
Any kind of help will be appreciated. Thank you.

  0 Comments

Sign in to comment.

0 Answers


Translated by