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.
Thanks in advance for any hints you can provide,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(320, 240);
onEnterFrame = function () {
outputVideo.draw(inputVideo);
}
_root.attachBitmap(outputVideo,10);
Chris.




Reply With Quote