‘Hi-res’ webcam image analysis update

May 18th, 2007

Remeber my post about getting a highter resolution image out of the webcam in the Flash9 Alpha? In CS3, it can even get you 640×480 pixels. Since my webcam is limited to 640×480 pixels, I haven’t been able to try for higher resolutions, yet, so I don’t know about those. Hopefully I can come up with a nice idea to demo this (I bet you don’t want another fish-eye, would you?). Well, actually I’ve got plenty of ideas, but time’s always short between school, work and social life.

4 Responses to “‘Hi-res’ webcam image analysis update”

  1. Arvin Says:

    Is there a way to render videos using the webcam’s resolution by creating a Video instance during design-time as opposed to creating a Video instance using actionscript?

  2. Niels Says:

    If you create a video-instance during designtime, it works just the same as a video-instance you create using actionscript (given that we’re talking about Flash CS3, of course). Just name the instance appropriately and skip the video-creation part in the code and it would work all the same.

    Alas, and thank you for reminding me I haven’t updated my blog in too long a time. Sometimes, I’m way to busy…

  3. Arvin Says:

    Thanx for the prompt reply. I tried creating a video instance at designtime but the webcam image is only in 160×120. But when I created a video instance at runtime the image is in 320×240. Given this scenario. Is there a way to resize the image before calling BitmapData.Draw(Video)? Thanx in advance.

  4. Niels Says:

    Hi,

    I’m sorry my reply took a little longer this time ;). I have tested the solution I gave in my previous reply and, unfortunately, you are right. I really think you shouldn’t be — because the video object should act the same in my very humble opinion. If I can find the time I will dive into the documentation to see if it mentions something about this matter.

    I have also tried setting the width and height properties of the video instance again using ActionScript, but to no effect.

    Using the draw method of the bitmapData instance you could of course scale up the image but it would just be an upsized version of your video. I don’t know of a true solution to your problem.

    I’m sorry, I hope you can find one elsewhere (if you do, let me know).

Leave a Reply