Borrar filtros
Borrar filtros

Multiple image subtractions that is comming from live camera

3 visualizaciones (últimos 30 días)
piku mandal
piku mandal el 18 de Sept. de 2018
Comentada: piku mandal el 20 de Sept. de 2018
I am capturing multiple images with the help of live camera and save into a file.Now i want to substract multiple images that is comming from live camera and store into a file.How is it possible in matlab and code.Thank You in advance.

Respuestas (1)

KSSV
KSSV el 18 de Sept. de 2018
Let I1 and I2 be the image data obtained by using imread. Assuming they are of same dimensions:
I = I1-I2 ;
  7 comentarios
Walter Roberson
Walter Roberson el 18 de Sept. de 2018
obj = videoinput('macvideo', 1); %use winvideo for Windows
obj.ReturnedColorSpace = 'rgb'; %you might need this
%then
for i=1:2 % (for 2 frames)
frame=getsnapshot(obj); %(taking snapshot from live camera and this is 1st frame)
if i~=1
sub_tracted_frame=imsubtract(frame, frame_pre);
imshow(sub_tracted_frame);
drawnow();
end
frame_pre = frame;
end
piku mandal
piku mandal el 20 de Sept. de 2018
Thank You Walter Roberson, sir.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Support Package for IP Cameras en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by