hi... i want to extract frame from live came and then apply jpeg on that.. so that to compress it...i can extract frame from avi file which is store on disk....but how can i aaply jpeg on real time video coming from cam... some one help me please...

 Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Oct. de 2011

0 votos

Frames extracted by mmreader() or aviread() or the VideoReader class are returned in to memory, not written on disk. Just take the frame in memory and imwrite() it in JPEG format.

Más respuestas (2)

wajid azam
wajid azam el 3 de Oct. de 2011

0 votos

tanks for answer......... sir i want to make a surveillance system in matlab video coming from the cam should be store in JPEG format..and the JPEG should be apply on the video manually ...so i have to extract frame from live steaming video and apply JPEG on that frame...then store these frame in the form of video.....so how can i extract continuous frame from steaming video... thanks

1 comentario

Walter Roberson
Walter Roberson el 4 de Oct. de 2011
Do you mean that you want to write your own JPEG encoder? Seems a little unusual but if so, then Fine, just substitute "apply your own JPEG encoder and fwrite() the file" for the "imwrite() it in JPEG format".

Iniciar sesión para comentar.

Wayne King
Wayne King el 3 de Oct. de 2011

0 votos

Do you mean mpeg video? If you have the Computer Vision Toolbox, you can use the System objects: vision.VideoFileReader and vision.VideoFileWriter to stream a video in and write to a file.

1 comentario

wajid azam
wajid azam el 4 de Oct. de 2011
yes sir.....but sir i want to do it manually by code....any help

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by