A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Webcam image processing and image scale

  1. #1
    University Student
    Join Date
    Aug 2007
    Posts
    2

    [F8] Webcam image processing and image scale

    Hi,

    Im trying to do some image processing from a live local web cam feed. The input from the web cam placed directly into a video frame looks fine, but when i place that data into a bitmap data object it seems to be scaled to the top left quarter into a space of around 160x120.

    Heres action script code, cut to only show the problem.

    PHP Code:
    import flash.display.*;
    //import flash.geom.*;

    //Webcam initalisation
    cam Camera.get();
    cam.setMode(320,240,30,true);
    inputVideo.attachVideo(cam);

    //Create output data
    outputVideo = new BitmapData(320240);
    onEnterFrame = function () {
        
    outputVideo.draw(inputVideo);
    }

    _root.attachBitmap(outputVideo,10); 
    Thanks in advance for any hints you can provide,
    Chris.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    University Student
    Join Date
    Aug 2007
    Posts
    2
    Ive just checked out some code from other peoples web cam applications and they all seem to have the same problem. Has anyone encountered anything like this before or is it just something blindingly obvious.

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    3
    have you ever solved this problem ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center