To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-17-2007, 10:23 AM   #1
burd3749
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(320, 240);
onEnterFrame = function () {
    
outputVideo.draw(inputVideo);
}

_root.attachBitmap(outputVideo,10);
Thanks in advance for any hints you can provide,
Chris.
Attached Images
File Type: jpg Untitled - 1.jpg (276.7 KB, 33 views)
Attached Files
File Type: fla problem.fla (23.0 KB, 19 views)
burd3749 is offline   Reply With Quote
Old 08-18-2007, 06:00 PM   #2
burd3749
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.
burd3749 is offline   Reply With Quote
Old 04-10-2008, 12:11 PM   #3
mungopark
Junior Member
 
Join Date: Apr 2008
Posts: 3
have you ever solved this problem ?
mungopark is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:37 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.