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...

 채택된 답변

Walter Roberson
Walter Roberson 2011년 10월 3일

0 개 추천

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.

추가 답변 (2개)

wajid azam
wajid azam 2011년 10월 3일

0 개 추천

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

Walter Roberson
Walter Roberson 2011년 10월 4일
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".

댓글을 달려면 로그인하십시오.

Wayne King
Wayne King 2011년 10월 3일

0 개 추천

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

wajid azam
wajid azam 2011년 10월 4일
yes sir.....but sir i want to do it manually by code....any help

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by