help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: video to SVG


From: narendra sisodiya
Subject: Re: video to SVG
Date: Sat, 3 Jul 2010 01:07:23 +0530



On Thu, Jul 1, 2010 at 11:46 PM, narendra sisodiya <address@hidden> wrote:
Hello All,
    I have taken 128MB flv video. audio is about 22 MB in size. As a very first initial step, I have converted video into image frames at 1 fps. (one frame per second). I have converted each frame into SVG image suing potrace. Resultant size of svg images is 55MB. I can further compress using diffing subsequent svg files. But there is a small problem.
    Lighting and other things change from frame to frame. for example if prof has written ABC at 3rd second and ABCD at 4th second, the SVG image of ABC in 3rd frame and 4th frame is not equal. Therefore, I am not looking for "Area of movement" for example, If in 4th frame I can detect that Prof has added 'D' and If able to find rectangular area of newly inserted object then I can make a new 4th frame where unchanged area will be taken from 3rd frame and changed area will be taken from 4th frame.
   What is this procedure called. I have not done any opencv or image processing task. Is there any implementation exist ?


Well, I have code this part of the project - http://pastebin.com/cBciVccv Here is the code. This code take 2 image (A and B). take difference (A~ B) and convert into boolean map (ABdiff) and then It find the bounding area.
run imshow(B) after running the code. Atlast it create new image Bnew by taking some part from image A and moving part from B.

Feeling happy !!

--
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

reply via email to

[Prev in Thread] Current Thread [Next in Thread]