Webcam Photobooth With Graphics?

I'm making a photobooth that would have graphics (like moustaches, etc) shown when they click "Capture".
When I tested it, I can see the graphics on my face through the webcam, but not when I've captured the image.
I'm guessing I have to "printscreen" the image and not "capture" it, because the results only shows the photo from the webcam without the graphics.
Any suggestions what I can do?
By the way, this is not my script, I found it on this forum as well.
// Import the BitmapData class
import flash.display.BitmapData;
// Create a new Video Object
// Library Menu, New Video, video (Actionscript-controlled)
// Drag video symbol to stage and give it an instance name of 'video_obj'
var video_obj:Video;
// Reference the camera object and attach it to the video object
var cam:Camera = Camera.get();
video_obj.attachVideo(cam);
// Create a BitmapData Object
var camera_bmp = new BitmapData(cam.width, cam.height);
// Add a movieclip to the stage with the instance name 'capture_btn'
// and add a button event handler
capture_btn.onPress = function() {
    // Draw the Video Object image onto the BitmapData Object
    camera_bmp.draw(video_obj);
    // Create a container movieclip
    var container:MovieClip = _root.createEmptyMovieClip("container", this.getNextHighestDepth());
    // Attach the BitmapData Object to the container movieclip
    container.attachBitmap(camera_bmp, this.getNextHighestDepth());
After the user has taken a photo with the graphics on it, I'd like the option of sending the photo, and an added message, to myself.
Any ideas how I can do this?
Thanks so much!

All that code is doing is grabbing the data from the camera. If you want to overlay the mustache or any other items you'll need to also add them into the var "container" that has the cameras data attached to it. You'll want to add these items AFTER you get the data from the camera, so add them below:
container.attachBitmap(camera_bmp,container.getNextHighestDepth());
// add mustache here via attachMovie() linkage from library or load external graphics, etc here
If you're familiar with AS2 and not AS3, that's a good reason to get a job done on time, otherwise if you're getting code snippits and are piecing something together I'd go for the performance and features of AS3 for a better experience. AS2 on a machine with a fast single processor should give fairly good results but interfacing with other devices can be more reliable (printers, etc) with AS3. I've done some kiosks similar to this in both AS2 and AS3 (more augmented reality than photos though).

Similar Messages

  • How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?

    How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?
    I do not use command line and tried to use ZapResourceForksAMAub_1.2 which I downloadedand instaled the Zap Resource Forks.action. Next I tried to use their sample copy-zap-rsrc.workflow in Snow Leopardon my Mac Pro. The 3 different steps are displayed in Automator but there is no place to put in which folder (on my deskto) to copy, and remove the resource forks from the graphic files.
    Can sombody please step me through this please please.
                                                                                          W.W.

    Unfortunately, Back to My Mac only works across computers using the same iCloud account.

  • Black screen after login while on battery with graphics switching enabled

    Getting a black screen after entering my password while logging into my account while on battery with graphics switching enabled. Everything is up and running, I just can't see it.
    I can log into the guest account on battery
    I can log into my account while plugged into power
    I can log into my account on battery if graphics switching is disabled
    I believe something that is starting up in my account is causing the system to switch from integrated to discrete graphics on login, and that switch isn't working correctly on battery power.
    As a work around for now, I can run with graphics switching disabled, but I'd like to solve this so I get longer battery life.
    MacBook Pro Retina 15"
    Mountain Lion
    All updates applied

    I had the same issue and managed to reslove it.
    Shut down your machine.
    Power it back on while holding the 'shift' key (left or right, doesn't matter)
    You will see a greay progress bar go across the screen while you boot in to 'safe boot'
    Once booted, login, and go to Energy Saver and turn on 'Automatic Graphics Switching'.
    Reboot back in to normal mode, and you should be able to log back in and see again.
    I did this without being plugged into AC power.
    Hope it helps!
    Cheers!

  • Windows 8.1 64bit. Webcam works with "Camera" app but not with Skype.

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas??? OS: Windows 8.1 64bitMemory: 32GBWebCam: Microsoft VX-7000. As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter).  Already attempted: 1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.2) Close (from taskmgr) anything that looks like it might use Webcam. 3) Run Skype for Desktop in Windows 7 and 8 compatibility modes None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam". I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it  Thanks, - Matt Symes

    OK - I appear to have resolved the issue.  I restricted my google terms to [vx-7000 site:microsoft.com "windows 8.1"] Which uncovered this article: http://support.microsoft.com/kb/933311 I noticed there were a couple of Windows 7 x64 specific registry settings that were mentioned so I checked these and they weren't as per the article. In fact - one of the Registry Keys was already used by other software "AI Charger+" which is some ValueAdd software that came with my motherboard. I uninstalled AI Charger+, uninstalled LifeCam driver. Reinstalled LifeCam driver in Windows 7 compatibility mode. Still not working. I returned to the registry and noticed the settings still differed from the above article. I corrected them (which involved not just amending Data but having to add new Values). I then disabled and reenabled the LifeCam from dvcmgmt.msc I was then able to get video from the webcam in the Skype for Desktop preview screen.    

  • Windows 8.1 64bit. Webcam works with "Camera" app ...

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas???
    OS: Windows 8.1 64bit
    Memory: 32GB
    WebCam: Microsoft VX-7000.
    As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter). 
    Already attempted:
    1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.
    2) Close (from taskmgr) anything that looks like it might use Webcam. 
    3) Run Skype for Desktop in Windows 7 and 8 compatibility modes
    None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam".
    I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it
    Thanks,
    - Matt Symes

    I have 6 USB3.0/2.0 ports on the rear panel of the motherboard and the camera is connected to one of these.
    I also have 2 USB 2.0/1.1 ports on the front panel of the PC connected to the motherboard (it's an old PC case!) I've tried using these with the webcam and there is no difference (i.e. works in "Camera" app - not in Skype)
    TI've generated and attached the log file as requested.
    Thanks for your assistance in this issue.
    Attachments:
    debug-20140217-1602#1.zip ‏922 KB

  • Issue with graphics tearing on thumb scroll in Flex 3

    We are seeing some off issues with graphics (one using the charting package and the other using degrafa) tearing on thumb scrolling in a large Flex 3 app.  It's very hard to reproduce on OSX with the latest versions of Safari and Firefox, but it shows almost immediately when you run the app on Windows or Linux (regardless of the browser).  I took one of the pieces out of the app and put it into a very simple testbed app and can't get the problem to show on Windows (i was hoping to isolate the issue in a smaller test case, but no such luck).
    So, ii've got a few idea's on how to work around the issue, but i was wondering if anyone else has seen this type of problem before?
    Problem:   
         - graphics tear on thumb scroll
         - doesn't happen if you click in the track or use the arrows
         - one view is using the charting package, the other view is using degrafa
    Thanks for any comments or suggestions...
    Richard

    SOLUTION:  changed wmode from "opaque" to "window" in the jsp serving as the wrapper for the app's main swf...
    Here's the reference we used to determine the proper setting for wmode;
    http://kb2.adobe.com/cps/127/tn_12701.html
    Thanks again for the response...  Richard

  • Batch create Multiple files in Acrobat X and X1 cannot convert Word 2010 with graphics

    I work for an exams board where hundreds of exam papers are produced. Once approved, these exams are converted to PDF and sent to print.  Using the Batch Create Multiple Files option is therefore essential to getting these papers print ready on time.  We have found that using this function to convert multiple Word 2010 files with graphics will not render it properly.  It deconstructs the graphics which loses the integrity of the exam paper. 
    I have trialled the same group of files on Acrobat X1 with the same result.
    Have other Acrobat Pro Users experienced the same problem?  Is there a fix? 

    I have uploaded the files and shared them.  These are the links
    Grade 11 Maths Standardisation Project Paper 2 2013.doc
    https://files.acrobat.com/preview/9694310d-ca7f-4919-883d-c53b36215d89
    Grade 11 Maths Standardisation Project Paper 2 Analysis Grid 2013.doc
    https://files.acrobat.com/preview/97da9e5f-d412-4d25-9bbc-d1a525d90826
    Grade 11 Maths Standardisation Project Paper 2 Diagram Sheet 2013.doc
    https://files.acrobat.com/preview/f50dd62e-af04-4060-85c5-fa81ce6803d8
    Grade 11 Maths Standardisation Project Paper 2 Formula Sheet 2013.doc
    https://files.acrobat.com/preview/7fc6007b-aaa6-4d65-9a8c-bf99818474a5
    Grade 11 Maths Standardisation Project Paper 2 Marking Guidelines 2013.doc
    https://files.acrobat.com/preview/b3a715bb-3683-48df-b0ec-3d17442275be
    Grade 11 Maths Standardisation Project Paper I Analysis Grid 2013.docx
    https://files.acrobat.com/preview/ab62e6b6-0261-434e-8a2f-382f74335685
    The first file is the problem file.  If you create this file separately, Acrobat will convert it perfectly.  But "Batch create multiple files" and the graphics are deconstructed on page 8

  • Indesign CS5 crash during startup - problem with Graphics.rpln

    I work in an architectural company and already several of our computers have experienced this very rare and unusual behaviour. During start up of Indesign (not clicking on any file but just launching Indesign) it crashes with the following error:
    "Adobe Indesign CS5 has stopped working"
    We use Windows 7 64bit, so the first step I did - I went into Application Log which says, so appears to be a problem with Graphics.rpln.
    -=-=-=-=-=-=-=-=-=-=-===-=-
    Fault bucket 1848500921, type 1
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: InDesign.exe
    P2: 7.0.0.355
    P3: 4bad00be
    P4: GRAPHICS.RPLN
    P5: 7.0.0.355
    P6: 4bad03d3
    P7: c0000005
    P8: 0004e1e2
    P9:
    P10:
    Attached files:
    C:\Users\User\AppData\Local\Temp\WER162E.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\User\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_InDesign.exe_b042 ec9a818cb8fb57eefe0aacb41c22fdcbb8_10c12aa8
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 9e59fc2c-5b68-11e3-908c-f46d0497fc9b
    Report Status: 0
    -=-=-=-=-=-=-=-=-=-=-===-=-
    I have tried everything I could think of - removed and reinstalled Adobe CS5, manually removed Adobe folders under %Appdata%\Local and %Appdata%\Remote folders (why can't Adobe delete those things during uninstallation is always a total mystery), changed video adapter drivers, cleaned Temp folders, everything I knew...
    None of the other apps like Photoshop or Illustrator CS5 malfunction - only Indesign. What is going on?
    Can it conflict with other software we use? We have Bentley Microstation, 3D Max, Office 2010, Kaspersky Antivirus and LOGMEIN installed on this computer...Any clues, guys?

    Looks to me like you've never installed any of the patches. Last patch for CS5 was 7.0.4, so I'd start with that and see if ti helps.

  • MSWORD templates with graphics look pixelated

    When converting Word templates to PDFs with both text and graphics, the text renders fine in the PDF, but the graphics look very pixelated and fuzzy and ragged.  Have tried both .doc and .docx files, and with graphics as JPG and EPS files.  Same results. 
    Any ideas here?

    They do print pixelated.  All content looks crisp in the word template, but any graphics still show as pixelated and ragged when PDF-ed. Smoothing is turned on.
    Thanks for the tip - any other suggestions?

  • Pdf (with graphics and text) in the email body

    When I place an pdf (with graphics and text) in the body of my email using Mac Mail my recipient sees them as attachments only. I am trying to find a way of presenting a formatted email with graphics that will appear the same way to all recipients, but a pdf frequently ends up being an attachment instead of staying in the body. The pdf  file doesn’t seem to always show up in the body as created. Is there a better way to accomplish this?

    You have no control over how your email maybe rendered by other email servers and client side software.
    Attachment Tamer may give you a few more options but it does not guaranty the end result.

  • How do I save emails with graphics into documents appear as broken page tried saving as html and all files

    I am using Windows 7, and ISP provider is AOL 9.5 dialup.
    When I attempt to save emails with graphics to My Documents,
    any graphics, usually in body of email as a bitmap or jpeg file, when I reopen email from My Documents, the graphics appear blank, as if a broken/torn page. Is there some settings I need to adjust on Firefox to be able to save complete files.

    I'm not a Mac user, that's my caveat, however there is a button on the ribbon for SharePoint Document Libraries on the Library Tab called Connect To Office.
    If that works with Office 2011 you'll start seeing your SharePoint site as a place where you can store documents in Office.
    Otherwise, you need to click "New" in teh library itself and have SharePoint open Office for you.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | c: http://www.b-i.com

  • Socket with graphics

    hi folk
    i have project to create client server program with multiuser
    i know how to deal with threading server by bassing messages
    but what about if all client will share the same board ( applet with graphics ) how can i deal with that ??

    You have to express what the "board" means in a manner that can be passed over the socket.
    For example...if you're writing a shared whiteboard type applet...then you could express the image or changes to the image on the whiteboard as lists of pixels, and then send those lists over the socket.
    I guess you could also serialize the image and share that, but that sounds to me like it would be harder to synchronize between clients.

  • Problem running reports with graphics in 11i

    Hi,
    I have developed some custom reports (using
    Reports 6i) with graphics charts embedded within them. I would like to display the output from within Oracle Applications 11i.
    There seem to be two approaches:
    1. Invoke the report from Oracle Self-Service using OracleOasis.runReport
    2. Register the report as a concurrent request (with HTML/PDF output) and run it using the concurrent manager
    Approach 1 requires the reports server cgi which I start using adrepctl.sh. Approach 2 requires the concurrent manager which I start using adcmctl.sh.
    The problems start to occur depending on how and from where I start these scripts. The exact problem occurs in both cases.
    If these scripts are started:
    1. From a regular telnet window from a windows NT box
    The reports error out with a REP-3000 internal toolkit error
    2. From an Exceed xterm session and I keep the Exceed session alive (I tried both TrueColors and PseudoColors settings)
    The reports work but there are problems with the output - pie colors do not appear (everything is white, for e.g.), etc.
    3. From the Sun Solaris console
    The reports work fine.
    The problem is that method 3 is not very convenient since every time I bring down the concurrent manager or reports cgi server, I need to walk to a different building (where the Sun boxes are) to start it.
    Method 2 above isn't particularly great either (even assuming I can get it to work) since I need to have an exceed session running all the time.
    Can some one offer suggestions to solve the problem I'm having? Even clues on why method 2 above is not working as expected would be greatly appreciated.
    Thanks,
    - NR

    Problem solved! As long as the xhost + is set on the host machine and some one is logged in, it appears that one can simply set the DISPLAY environment variable to point to the host (even from a simple telnet window) and start the reports server or concurrent manager. Looks like you also have to have REPORTS60_NO_DUMMY_PRINTER set to "YES".

  • Frame in frame with graphics problem-or maybe not

    Hi from Croatia.
    Well I have and extremely demanding costumer that wants to control every single bit of the project.
    The problem is as follows.
    I have a book that every once in a wile has annotation which above and bellow has a graphic line (not simple line but complex graphic imported from illustrator.)
    I tried to anchor one object above and another bellow this text which lets say stands in the middle of text frame and for me everything works ok.
    But this demanding customer wants that those annotations are in separate frame so that he can have full control over them(?).
    So I made frame in frame-put wrapping around this smaller frame.
    The problem is- is it possible to put those graphics in this smaller frame, create text object and add it to library so that i can use it multiple times. I have more than hundred of those annotations.
    And is it possible when i cut the text from this main frame to paste it in this smaller one and that this small frame automatically fills with text so that frame expands vertically according with amount of text. I am not placing text but pasting. I hope you have understood but in every case here is an example.
    Main text frame(text fills full width of page)
    sadbhjasdsdab
    sagsafgsfgafsd
    agsfgfasg
    (Now smaller frame with graphic fills full width of main frame)
    ewfewtf
    agasg
    sdagasdga
    (text fom main frame continues)
    fasdfs
    dsgasgasg
    dfgdfsg
    dfsgsd
    Uf this was exhausting even for me.
    THX for any help.

    I tried to use 3 row table with header and footer, but the problem is that indesign does not allow tables to break when the part of table goes to another page.
    And THX for in for on those plugins.

  • Copy of source message to an element with graphical mapping

    Hi all,
    Is there a way to copy the complete source message of a mapping to an element of the destination message (with CDATA) with the graphical mapping (or UDF, but I want to avoid XSL) ?
    For example, from this message:
    <source>
      <element>test</element>
      <element2>test2</element2>
    </source>
    I expect the following result:
    <dest>
      <data><![CDATA[<source><element>test</element><element2>test2</element2></source>]]>
      </data>
    </dest>
    Thanks for your help.
    Greg

    Hi,
    Use this Simple Concept
    XML node into a string with graphical mapping
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Regards
    Seshagiri

Maybe you are looking for