AS3 image stabilization

I writing a motion detection script which works fine but there is a small amount of camera movement between frames and I need to automatically align the new frame with the old one to ensure the motion detection works well (the object I'm tracking is quite a small part of the image). This is what lenses with image stabilization do but this needs to be done in Flash itself. I could code my own but I'm sure there is a very efficient, tried and tested, way of auto-aligning images but I can't find it. Any suggestions much appreciated?

If I understood your task correctly...
Camera image stabilization, to my knowledge is accomplished via employing mechanical devices (gyroscopes?). In software this kind of thing is done with some sort/degree of AI. Most famous is facial recognition. I guess everything boils down to BitmapData processing and math algorithms.
You said that you have already written some code so I assume you are profficient in BitmapData manipulations.
Perhaps you may want to look into OpenCV. I saw some cool things people do with it in Flash. Also, there is FLARToolkit - AS3 library.

Similar Messages

  • Multicam Clips in the Timeline and Image Stabilization

    I've got a multicam clip in my timeline that I would like to use image stabilization on. What I'd like to do is:
    double click on the clip which brings up the angle editor with the range and angle selected.
    press cmd-B to blade the clip
    turn on image stabilization.
    Unfortunately, step one doesn't work. I'm forced to open up the angle editor and manually skim and search for the desired angle and time range. It would be okay if the playhead in the angle editor was slaved to the one in the timeline. Then when you went into the angle editor you'd be right at the desired source material, but no, the two seem to be independant of each other. It makes performing the task much slower and more tedious. So much so I am convinced more experienced users are going to know a quicker way to do it.
    So, does anyone know an easier work-around for this?

    Thank you Tom and Luis, but I'm not with any of this. I can add a clip to the timeline or insert a clip into it via the "arrow tools". If I attempt to shorten the clip IN the timeline there is a blank space representing the amount trimmed from the clip.
    I want the next clip along to that I've trimmed to automatically move along the timeline albeit shortening the total project duration.
    Pressing "A" on the keyboard doesn't achieve this.
    I simply click on the clip in the timeline  to highlight it with the yellow margin. I then click on one "edge" with the arrows symbol and drag the edge inwards. This then leaves the space I do not want.
    As for "Preferences" when I click this under "Final Cut Pro" i see nothing either relevant to this problem or that I could trash.

  • Is there any app in the app store that takes off image stabilization

    i bought a fisheye for my iphone and because off the image stabilization, during video, the fisheye corners are very shaky and looks terrible. is there any app or anything that will take if image stabilization during video?

    A tripod.

  • Image stabilization only works half the time and is not consistent

    When I access image stabilization, apply, and render it. Only sometimes will it work. Help.

    daveypr
    It looks like you have come up with the answer to your particular situation. Great.
    But, so that your experience can be of benefit to those finding your thread
    a. What version of Premiere Elements are you using and on what computer operating system is it running?
    b. How were you not applying the video stabilizer to the whole video clip in the first place? Or, are you suggesting
    that others apply the video stabilizer to all the clips on the Timeline instead of one video clip that may really need that effect?
    Thanks.
    ATR

  • Can 5 axis image stabilization be engaged with non system lenses for A7II and A7rII?

    Many people use/will use their excellent non system manual focus non system macro lenses on the A7II and undoubtedly on the soon to be released A7RII. Stabilization in the X/Y planes is very very important for macro. Sony on the A7II only stablizes the X/Y planes for lenses that report the focus distance as best I can tell. Perhaps the lens compensation app or another can be modified so this data can be manually inputted or even change the firmware to allow this and thus stabilize all 5 axes. Focal length will need to be inputted of course as well. Perhaps there is another way around this that I have missed. Thanks for any comments.

    Thank you for taking the time to answer.  I have done more digging in reviews and recalled sony's announcments which implied on 3 axis IS is available w/o a lens that reports focsing distance. Not my favorite source, but review from PCMag: "If you're using a non-native lens, or even a native manual focus lens like the Zeiss Loxia 2/50, it's stabilized along three axes—yaw, pitch, and roll. There's a technical reason for that. In order to compensate along the x and y axes, the camera needs to know the distance to the subject, which requires electronic communication of the focal distance from the lens to the body. To compensate for the other three axes, the only data that needs to be transmitted is the focal length of the lens. Even if you're using a purely mechanical Leica lensit can be stabilized—you're able to manually enter the focal length via a menu. The only real downside to this is that the A7 II does not add that focal length to the recorded EXIF data, so if you like to track which lens a shot is captured with, you'll need to take notes." http://www.pcmag.com/article2/0,2817,2475439,00.asp A friend informed me that on his A7II he must mount a non OSS Sony lens first to have any image stabilization with any of his totally manual lenses--seems the camera saves the settings of the last lens attached.  Turning the cam off doesn't reset this--very odd---seems to be a bug in the firmware.  I hope the A7rII is different. This whole issue is quite confusing.  Appreciate any additonal clarification.

  • Allow 5 axis image stabilization for non system lenses in A7(r)II series

    Many people use/will use their excellent non system manual focus non system macro lenses on the A7II and undoubtedly on the soon to be released A7RII. Stabilization in the X/Y planes is very very important for macro.  Sony on the A7II only stablizes the X/Y planes for lenses that report the focus distance.  Perhaps the lens compensation app can be modified so this data can be manually inputted or  even change the firmware to allow this and thus stabilize all 5 axes.  Focal length will need to be inputted of course as well.   If the new field is left blank, no action is taken as not to affect users not interested in this feature.  Olympus somehow allows all 5 axes to be stabilized just by putting in the focal length but it is not clear how they pull that off.  Thank you for considering this.

    Thank you for taking the time to answer.  I have done more digging in reviews and recalled sony's announcments which implied on 3 axis IS is available w/o a lens that reports focsing distance. Not my favorite source, but review from PCMag: "If you're using a non-native lens, or even a native manual focus lens like the Zeiss Loxia 2/50, it's stabilized along three axes—yaw, pitch, and roll. There's a technical reason for that. In order to compensate along the x and y axes, the camera needs to know the distance to the subject, which requires electronic communication of the focal distance from the lens to the body. To compensate for the other three axes, the only data that needs to be transmitted is the focal length of the lens. Even if you're using a purely mechanical Leica lensit can be stabilized—you're able to manually enter the focal length via a menu. The only real downside to this is that the A7 II does not add that focal length to the recorded EXIF data, so if you like to track which lens a shot is captured with, you'll need to take notes." http://www.pcmag.com/article2/0,2817,2475439,00.asp A friend informed me that on his A7II he must mount a non OSS Sony lens first to have any image stabilization with any of his totally manual lenses--seems the camera saves the settings of the last lens attached.  Turning the cam off doesn't reset this--very odd---seems to be a bug in the firmware.  I hope the A7rII is different. This whole issue is quite confusing.  Appreciate any additonal clarification.

  • Sony TG5V vs Sanyo Xacti HD1010: A QUESTION ABOUT IMAGE STABILIZATION

    i have decided to return my new Sony TG5V handycam since discovering that it does not have an external mic jack for interviews that I plan on doing. The return will not be a problem, but my new question is this:
    I did some preliminary research last night and found that the Sanyo Xacti HD1010 is very similar to the Sony TG5V, and it/the Xacti HD1010 does indeed have an external mic jack, so that solves the microphone requirement.
    Reviews have said, however, that the Sanyo HA1010 has poor IS (Image Stabilization) and that in fact, the Sony TG5V has a much better IS. I even saw some comparisons, and it is obvious that the Sony stabilizes better.
    HOWEVER: *Since I am going to edit with iMovie '09, which has a fine Image Stabilizer/Non Shake feature, would that make up for the bad shake in the raw footage?* More precisely: Would the same footage I shoot come out just as smooth with the Sanyo Xacti HD1010 with poor IS as it would come out with my Sonya TG5V and the iMovie '09 Image Stabiizer, working double time, so to speak?
    And also: I am still looking for a small, lightweight videocam that I can carry in my purse. I do not need or want a larger one. I have a larger Sony that I never use. I welcome any suggestions.
    Thank you.
    ~L

    I just bought an Xacti HD2000, convinced by what now seems to be pure "hype" about much more rapid transfer and editing in iMovie but don't see any improvement over my Canon HG20 which ricords in AVCHD. In any case, iFrame is 30fps. Sanyo made a big pitch about Xacti, iFrame and the Mac but turns out all the software and the manuals are about Windows. My requests for assistance of Sanyo got zero results, after the automated response. If you want I'll sell you my Xacti.

  • Camileo S10 Camera does not remember the image-stabilizer setting

    Hello Forum reader,
    Is it normal that my Camileo S10 Camera does not remember the image-stabilizer setting?
    I mostly use the 720px setting and stablilizer on, but after the camera is turned off the stabilizer is off again.
    Greetzz.. Ben

    Hi
    This might be possible.
    I remember that the focus does not work if the stabilization has been enabled
    So maybe its an intention of the manufacturer that the stabilizer would be disabled again.
    Greets

  • Image Stabilizer for iMovieHD6 and OSX10.8.5?

    I have a lot of 'wobbly' videos (Iknow I SHOULD use a tripod but these clips are when I've been filming while walking about) and the only one I've seen is by GeeThree Slick, but the problem is that it won't work with OSX10.8.5. as shown below:
    I emailed them to ask if they would upgrade it soon and their reply was as follows:
    So because Apple have this nasty attitude of blocking third party apps, as shown above, I really need to get an editing stabilizer like the GeeThree one as an alternative.
    Can anyone help me please?

    I have got a tripod but, as I explained in my post, the wobbly clips are caused by the fact that I was filming while walking about so my tripod would not be any help in that situation anyway.   As the problem already exists in the video, I'd like to correct it.
    Re your comment about me 'moaning', it's because (copy of information from GeeThree):
    Slick Transitions and Effects
    Volume Eight
    Slick Stabilize
    Amazing image stabilization takes out the shakes and jitters from your video. (does not work with Mac OS X 10.7 or later).
    So there you have it 'Slick Stabilize does not work with Mac OSX 10.7 or later'.  My second 'moan' refers to their reply about updating it (quote from GeeThree's email reply):
    Hello,
    Unfortunately there is no plan to update the Stabilizer plug-in for Mac OS X  10.7 or later.  Since Apple closed the door for us to continue to develop plug-ins, we no longer have the resources to update plug-ins from iMovie HD 6 to the most recent versions of OS X.
    Best Regards,
    GeeThree Slick Team
    For some reason my jpeg files cannot be seen as they would make everything clear about my complaints being justified.  You say 'Apple do nothing of the kind', so why does GeeThree say Apple have closed the door to them?

  • Image stabilization question...

    I have use the image stabilization in Motion and found it very good.
    I have also got AE CS3 (Windows) which does not have a good comparitive image stabilization.
    What 3rd party plug in should I buy for AE that would do a good job?
    (At the moment I am testing out Mocha but the trial version would let me export more than 10 frames !!! So, I can't really tell what a good overall job its done?)
    ps: I know its an Apple forum,but I know a lot of users here also have AE and would like to help me out)

    You might have better luck at Creative Cow. Lot of AE users hang out there.
    Andy

  • Image Stabilization in CS5 (no Mercalli Support)

    I have preordered CS5, and currently make use of the mercalli FX plugin to stabilize shaky video clips.  It doesn't appear that mercalli will be compatible with CS5 for a while, is there some other plug in I can use to provide high quality image stabilization?
    Has anyone used motion stabilization in After effects and compared it to what Mercalli does?
    For now I guess I will stabilize clips in Premiere Elements, export them, then use the pre-stabilized clips in CS5 but that will get cumbersome fast.
    Are there any really high quality motion stabilization plug ins that will be compatible with CS5?  Has anyone here compared Mercalli to other solutions, and found one that's better?
    -Roger Uzun

    Using the new version is far easier than the old, as you no longer have to select the best preset - the software now does this automatically in the initial analysis.  It is still possible to tweak the various individual settings manually.  With the old version you had to buy the expensive "Expert" version for this feature, but this time around there is only the one version - the expensive one of course!
    As far as I know, the new version is available to existing users only, on special request.  It is expected to be generally available at the end of this month, and the help files will be with it then.
    You do have to watch for a number of potential pitfalls:
    field order - Mercalli is not good at detecting this automatically when used as a Premiere plug-in;
    treatment of borders - an inevitable consequence of all stabilisation is that the area of video moves within the frame, leaving blank areas at the edges.  these vary from frame to frame and there are three alternative ways of handling this.  the new version is less clear in this, to me at least.  I normally zoom the video to eliminate the black borders.
    transitions - if you apply Mercalli to a clip in your timeline and then apply transitions to the end(s) of the clip, the analysis will have to be done again, as you have introduced previously unconsidered areas to the clip.  I normally apply Mercalli to the clip on a second timeline, render and export the clip, making sure that I include all the material that I may want to use, if I apply transitions.  I generally apply colour correction, etc before exporting to avoid as far as possible quality loss due to repeat rendering.  I usually apply 10% sharpen filter at this stage too.  The new version offers a stand-alone version, which I like very much as it marks in red areas of the video in which extreme correction has to be applied, opening up scope for selecting the "less-unstable areas of video for use.
    I have never used either After Effects or Mocha, but I have used all the other commercially available stabilisation software, and Mercalli gives by far the best results of the half dozen or so.  I have tried  the New Blue stabilisert, but I could not get on with it.Most of the others I have used are no longer available.  You could try SteadyHand from Gooder Video.
    Message was edited by: Alan Craven

  • Image stabilization problem

    I am having a problem with image stabilization. After applying motion settings to scale zooming in on the clip and also "panning" in the Canvas using Image and Wireframe, the image "flutters" I applied the image stabilization filter from the Effects tab > Video filter > Video folder in the Browser. It appeared to work very well, but after I burned and viewed my DVD, the image as I said, flutters.
    Now, I tried applying the Stop Motion Blur filter, also in the Video directory, but I can still see faint fluttering in the Canvas. I could live with the quality that is displayed in the Canvas, but after burning the DVD, it looks pretty bad. Any ideas on how I can smooth out the image on these clips?
    Message was edited by: emmagoldman

    What do you mean by, "unless it's set to be 100% size,
    you're only looking at one of the two fields of video..."?
    He means that when Canvas is set to "Fit to Window" it
    uses only one field of the image to save on processing
    cycles. When it's set to 100%, both fields are used,
    since there's no scaling to bog things down.
    Check out this very informative article:
    http://www.kenstone.net/fcphomepage/rendering_qualitybalis.html
    Les Stuck

  • Image stabilization setting by itself

    I've got a strange problem in iMovie 9.0.2. I've done a picture in picture for a number of stills. I quit out of the project and then re-opened it the next day and all the PIP's have image stabilization applied to them with max zoom set to 105% with a little hand symbol inside each PIP. I don't quite understand why this happened, seems more and more like iMovie 9 (iLife 11) has a mind of it's own as I use it more and more. I didn't apply this, it just happened by itself.
    So the question is, what is the image stabiliztion for -- the PIP or the still itself which is behind the PIP? Is there an advantage to using image stabilization? I've seen some people say it doesn't smooth the image out but does the opposite. I don't understand the max zoom relationship to image stabilization.

    Can't tell you why it suddenly set itself, that seems odd. But the mechanism it uses to 'stabilize' video is to zoom into the video frame (cutting out stuff around the edges) then it tries to tilt the video frame left and right to keep everything oriented properly. That's why it has been zoomed in to the 105% level. It only really works for High Def video frames that already have a lot of extra space to work with and if the subject in the frame isn't in a very tight closeup but has a good deal of empty, 'whitespace' around it.

  • Which image stabilizer do you prefer?

    Cost is not a factor. I typically only work with AVCHD videos. Which image stabilizer would you recommend? What are the pros and cons?
    So far I read up on proDAD Mercalli V2, vReveal, and Mocha for After Effects. I haven't tried After Effects so I'm guessing that I will have to learn that too.

    From my experience shooterNZ is right again, AVCHD could be either 13Mbps amateur or 25Mbps professional and I would not use the 13Mbps stuff, in any case the stabilizer in Premiere Pro or Premiere Elements maybe as good as you can get, but , it does magnify the pixels and with normal camera movement will make it look like running on a railway track most of the time, but  really bad stuff  .....not a good look.  Re -shoot or Frame Hold if movement in subject is not a consideration

  • HT1338 Imovie Crashes when I try to do image stabilization

    I Movie 11 crashes when I try to do an image stabilization. It wasn't doing that before but has started now.
    Please help

    [Have you seen this article?|http://support.apple.com/kb/TS2558]
    It suggests importing at 960x540.
    If you prefer to edit at full 1920x1080 (and why wouldn't you?), get the free app called MPEG Streamclip and convert the h.264 files from the Canon to Apple Intermediate Codec in 1920x1080 (e.g. current dimensions). This will produce a larger file because the Apple Intermediate Codec uncompresses the h.264 so that every frame is a full frame. However, you can edit in 1920x1080 with no crashes.

Maybe you are looking for

  • Product costing by sales order configuration steps

    hi plz send me product costing by sales order configuration steps. sir, i know manufacturing order configuration step but i do not sales order configuration. in the sales order also is same as manufacturing order like first we have to make planning c

  • Mac keeps freezing / crashing

    Hi, I am using a Mac Mini with Server and have lately started to see some problems occurring. It is a 2.6Ghz i7 with 8GB DDR3 memory running Mavericks. All of a sudden one way, my safari started to crash to a point I get the little spinning wheel and

  • Sub contracting PO - MB1B - Accepts more than PO Quantity

    Hi Gurus, I made a Sub-contracting PO with BOM components. During the transfer of BOM components to vendor (MB1B - 541), the system accepts to transfer more than PO quantity to transfer. How can we restrict this transfered quantity should not exceed

  • MP4 clips just won't preview in PremPro CS4

    Hi there, I have a question about why I don't seem to be able to work with HD footage in Premiere Pro CS4.  I'm using footage shot on a Flip Mino HD (720) and although I can access the MP4 files just fine, and import them into PP ok, I can't get them

  • Trying to have a script work on all pages

      Hello, I am having a problem with my script in livecycle. I am trying to create random generated numbers, but the code i have only works on one page. I have 128 pages i need it to cover. The code is as follows. Please let me know if you have a solu