ActionScript 3.0 :: Implementing A System That Can Detect Night And Day Through Webcam?

Nov 20, 2011

I'm having a bit of trouble implementing a system that can detect night and day through webcam.

I've decided the best approach would be to detect the average colour of the webcam image, and through this it can be converted to grayscale and if its closer to black the background will be dark or if its white it'll be brighter.

What I'm having trouble doing is working out how to achieve this, I've been using the kirupa webcam tutorial but I've got no idea how to actually go about working out the average colour.[URL]..

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Night Vision Webcam Effect?

Nov 11, 2009

Does anybody have a plugin, filter, or some as3 code to achieve this effect? I can easily achieve it using layers/opacity/tints etc but its bulky. Im looking for a smoother way of doing it.

View 2 Replies

Flash - Webcam Inside Web Chat System?

Dec 10, 2010

I need to implement a webcam for a web chat system. Im trying to avoid that the video data goes through the webserver... it should go directly from client to client (as if they were using with skype).

View 1 Replies

ActionScript 2.0 :: Detect Color Using Webcam?

Aug 9, 2009

Currently making a music project that will, in theory, play sounds based on detected colors a webcam can see.

I'm certain this is possible in either AS 2 or 3 - but unsure exactly how.

I've searched the wonderful nets for a tutorial or an example of this being done with flash but have come up with nothing.

Is there any tutorials for detecting colors and then responding to them? (All as viewed by webcam, so in real-time).

View 5 Replies

ActionScript 3.0 :: Detect A Color Via Webcam

Aug 16, 2009

I need help with a small flash project i'm doing. Basically the task is to detect a color via webcam, then respond to what colors it can see (using the webcam). Example Color red is held in front of camera - flash sees this, then respond by playing a sound. green and red is held in front of cam, flash can tell there is two colors, plays a sound. etc would writing the webcam video object to a BMD every frame, then getPixel that to work out the colors? I'm guessing i'd need to use colorTransform to merge all the blues, reds, greens, etc together (so it only checks for those 3) then responds if it finds them with getpixel?

is there any examples of that, or something similar i could work from? would anyone be able to give a quick write up of what this might looklike/how to do it? (havent done much programming in as3) All i need it to do is: Check video for range of colours (ie, blue, light blue, dark blue, etc, all are equal to blue, unsure how i'd do this. Was thinking Yellow, Red, Green, Blue as the 4 colours) If any of those are in the video, then respond by playing a sound. (However if yellow and blue are in the video at the same time, play a DIFFERENT tune)

View 1 Replies

Professional :: Detect Possible Webcam Resolutions

Jan 6, 2011

I searched forums and googled and not found anything on how to detect the Webcam supported resolutions in flash.The whole issue stems from the issue when I use Camera.getCamera() (only have one attached to my laptop) I'm always getting different values for camera.height and camera.width. Also some 720p cams have different aspect ratio then the old cameras.Is there possible to detect somehow what's the largets resolution is supported by a webcam? Or all possible resolutions supported?

View 2 Replies

ActionScript 3.0 :: Get Webcam To Detect Colors?

Oct 7, 2009

I'm working on a school project that will work so that a webcam can scan a grid of colors and determine what color it is and there by playing a sound tha is connected to that color. You can then create music by drawing different colors on a grid.I know that this is doable in AS3, I just don't know how exactly since im kind of new to this.So i managed to import the webcam image to flash, and that's all. How do I Proceed?

* How do i get the webcam to detect colors? (Green, Blue, Red, Yellow and Black)

* How do i connect these color detections to start playing a sound/movieclip?

View 1 Replies

ActionScript 2.0 :: Detect When A Webcam Fails Or Is Unplugged?

May 29, 2009

im trying to detect when a webcam fails or is unplugged.

Code:
//Get webcam on the screen
var video_vobj:Video;[code]....

this is only executed at the start and i cannot tell if the camera is disconnected during the rest of the clip.Is it possible to check the connection for the life of the clip ?

View 1 Replies

Actionscript :: Detect Webcam Hardware With Flash?

Aug 27, 2009

Is it possible to detect the specific webcam hardware that a person is using to stream through flash? Assuming that the user has accepted the webcam security questions and is successfully streaming to a FMS server; Can some code we written so that I can tell if the user is using a lifecam vs another model. Ie. are there headers or some other signature that can be used to detect this?

View 1 Replies

Media Server :: Detect Webcam Connection In Runtime?

Jul 15, 2010

Is there any way to detect webcam and microphone connections in runtime in flex.Suppose the clients are participated in a videoconnference .One of clients joins the conference without webcam.In meantime he connects to webcam as he in the conference.How to stream  that user video to all connected clints.

View 5 Replies

ActionScript 3.0 :: Detect Version System Memory In It?

Apr 10, 2012

Can i detect System Memory (RAM) & Java version in actionscript 3?

View 4 Replies

Flex :: Detect All The Browsers That Are Installed In A System?

Jun 16, 2010

how to detect all the browsers that are installed in a system.By using Flex

View 2 Replies

ActionScript 3.0 :: Detect When User's Webcam Supports 16:9 Aspect Ratio?

Jan 11, 2012

Is there any possibility/workaround to detect if user's webcam supports 16:9 aspect ratio?

View 4 Replies

ActionScript 1/2 :: Flash - Possible To Detect System Environment Variables

Jun 18, 2010

A quick question really, is if possible for Flash to detect PC environment variables?

View 4 Replies

Webcam - Detect Flash-accessible Camera Without Prompting User For Access To Camera If One Exists?

Oct 11, 2010

From a Flash object, I would like to be able to detect the presence of a webcam that the user might grant access to, without actually asking the user whether they want to grant access. This is to streamline a large application that has extra features if a webcam exists — if there is a webcam, the application will present several dialogs that lead up to the normal cam-security prompt, but if the user doesn't have the hardware, I want to skip over them altogether. Requesting access to the cam before those dialogs won't make sense to the user.

It appears not to be possible to call Camera.getCamera() without the security prompt happening. Is there a workaround? (For instance, could I, perhaps, call getCamera in a hidden Flash object and inspect its return value, or does it block until the user acknowledges the security prompt?)

View 3 Replies

Actionscript 3 :: Detect "hidden Files Extension" (windows System ) From Flash App?

Sep 3, 2010

i'm working on an app (flash/As3) that lets the user upload and edit an image, and then save it to the computer, using FileReference. it's posible to know if the user computer have the option "hidden file extensions" (windows system) selected? How can i do it?

View 3 Replies

ActionScript 2.0 :: CS3 Day And Night Background

Mar 10, 2009

I have made my website: [URL] and I have to SWF's one for the day and one for the night. I used a JS script to detect the user's time and by that to activate the currect SWF but I find it hard when I want to update the FLA of the day.FLA I have also to update the night.FLA. Therefore, is there a way I can make that detection of user's time using ActionSctipt in the FLA of so I will have one FLA and in the preloading time it will detect the time and by that will put the correct background?

View 3 Replies

ActionScript 3.0 :: Day Night Background Changer?

Dec 17, 2010

i was looking for a tutorial to make the back ground change depinding on local time

View 5 Replies

ActionScript 2.0 :: Show The Defference Between Day And Night?

Sep 12, 2004

my problem is the next. on my website i wan't to show the defference between day and night. So between 6am and 6pm it'll load the daylight.swf and if else it'll load the night version. I will start the website from a flashbutton so i think i have to put an actionscript within that file. so it will load the right movie at the right time for example i have a english kellogg's website from special K

View 1 Replies

ActionScript 3.0 :: Build A Site For A Night Club?

Dec 6, 2009

I have just recently finished work on a A level project, which was to build a site for a night club. I decided to design and program it all in flash, then embedded the .swf files in html and URLRequesting them in the .swf files to link between them. But this is beside the point...

All my content is in text files and I load this into Dynamic Text Boxes and because some of the text is excessively long I decided to use a UI Scrollbar. I then encountered a most massive annoying error.

If I run the .swf on its own the scrollbar functions correctly showing the tab and also works with the scroll wheel. If I drag and drop the .swf into a browser and use it in there the scroll wheel functionality works but the tab disappears.

Lastly if I embedded the .swf file in a .html file then load the .html in a browser I get neither the scrollwheel functionality or the tab.[URL]..

View 3 Replies

Lost All Layers / Motion From Last Night / But Movie Still Plays?

Aug 12, 2009

I don't know what is going on, but I opened up the file that I was working on last night and all the layers are gone. They have been flattened into a single "Layer 1", and the the timeline shows only the one frame. However, when I Ctrl-Enter, the movie generates and plays just like it did last night (the layers and motion seem completly intact). How do I get them back for editing? This is ridiculous. As far as I know I did nothing to flatten the image, and I don't see how it could correctly create the movie unless my info is intact in some form.

View 1 Replies

ActionScript 3.0 :: System.useCodePage - Getting Error 1120: Access Of Undefined Property 'System?

Aug 7, 2009

I got a textfile who i am reading on a serverside script and passing it as a script to my client side as3 code. The problem is that i am using characters like ä,ö,ü,ß and this isn't well displayed. I tried System.useCodePage but the compiler complains about : 1120: Access of undefined property 'System'. It doesnt matter if I tried this on the first line of the 'Action' in the first scene or in the first line of the first .as file i am loading. (btw i am only working with .as file and not in the timeline). When i am importing flash.System.* the compiler complains he dont know useCodePage.

View 3 Replies

ActionScript 3.0 :: Particle System And Masking - Particle System Movieclips To Display An Image?

Dec 29, 2010

Is it possible to make this a mask? The system contains one movieclip of a circle called ball, also a class called ball and a class called particle. I want the particle system movieclips to display an image...I'm sure this is possible...just have not been able to find a way. A little backround, I'm a completely selftaught n00b when it comes to AS3, but I'm grasping it fairly well... the tutorial is on this website, called A Simple Particle System Using Actionscript 3.

View 0 Replies

Flash :: Recording Live From A Webcam / Recording From User's Webcam - PHP

May 23, 2011

I want my site's users to be able to record videos straight from their webcams into my site. Videowhisper is one such tool which seems to work fine - [URL] But I'm looking for opinions on better / more scalable / reliable solutions. Paid solutions are fine.

View 4 Replies

Flex :: Implementing States In App

Apr 24, 2010

I'm trying to work out how to use states in my Flex app.I've created two states, State1 and Stage 2. Both are based off the base state. I've created a few visual elements for State1, and given each of them includeIn="State1".But when I'm in design mode and click on State2, these elements are still visible?If I try to delete them while State2 is selected, all that happens is RemoveChild is added to the State2 tag.

View 1 Replies

Actionscript 3 :: Implementing IEventDispatcher?

Jun 3, 2011

I haven't used the implements keyword before, and I've been trying to use it to implement the IEventDispatcher class to see if this would allow me to use addEventListener() in a class that extends Object (this is my understanding of what it's for - correct me if I'm wrong).My class is like this:

package
{
import flash.events.Event;

[code].....

View 2 Replies

Actionscript 3 :: Implementing Indexer From C#?

Aug 29, 2011

Within C# there're these things called indexers that do something similar to this:

public Something
{
public Object this[String s]

[code].....

View 1 Replies

ActionScript 2.0 :: Implementing And Editing XML?

Jun 11, 2004

implementing and editing XML within Actionscript worked out swell - no problems so far..but the some_xml.send() seems to become a true nightmare!

Soit, here's an example:

I made a little "keep-in-touch" maillinglist, where visitors can leave their adress, click the "send" button - and let the administrator view the list on a secure page. XML suits fine for this job, i think.

Code:
on (press, keyPress "<Enter>") {
mailInput_xml = new XML();
mailInput_xml.ignoreWhite = true;[code]....

View 2 Replies

ActionScript 3.0 :: Implementing External Swfs?

Sep 28, 2010

I have a custom form that I want to implement and I am having a problem figuring out how to do so. I want to have it work like an inner popup where it blurs and unblurs the background imageHere's my setup:FLA file contains-UILoader for swf sectionUILoader for random background imageLets say I load a section called home.swf into the section loader. Within the home.swf I have a button for someone to call up the form.swf. Is it possible for the form to blur the random background image when loaded then unblur it when it's done? I also have no idea how to unload it.

View 1 Replies

ActionScript 1/2 :: Implementing  A Preloader For Loading An Swf?

Aug 2, 2009

I am trying to implement a preloader for loading an swf. I have an swf named 001.swf. I need to create a preloader for loading this swf. So should i create one more swf for loding the 001.swf.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved