How to turn a camera webcam into a video.
Mostrar comentarios más antiguos
I want to get the value printed on video instead of webcam.
clear
camera = webcame; % Connect to the camera
==> camera = VideoWriter('slow.avi')
nnet = alexnet; % Load the neural net
while true
picture = camera.snapshot; % Take a picture
picture = imresize(picture,[227,227]); % Resize the picture
label = classify(nnet, picture); % Classify the picture
image(picture); % Show the picture
title(int(label)); % Show the label
drawnow;
end
I've changed it, but it doesn't work. What should I change?
2 comentarios
Walter Roberson
el 7 de Dic. de 2019
I do not understand what you are trying to do?
It looks like you have code designed for webcam . Are you trying to adapt the code to read from a video instead? Or are you trying to write the titled image out to video?
bo hyeoun lee
el 7 de Dic. de 2019
Respuesta aceptada
Más respuestas (1)
bo hyeoun lee
el 7 de Dic. de 2019
Editada: bo hyeoun lee
el 7 de Dic. de 2019
0 votos
Categorías
Más información sobre Image Acquisition Toolbox Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!