A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Webcam image processing and image scale

Threaded View

  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

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