motion-detection

How do I detect when someone shakes an iPhone?

I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this? ...

Resources for working with video feeds in C#

I'm starting to get into a side project that I hope to pull in frames from several small IP cameras, perhaps do a bit of motion detection and redisplay them in a form with alerts. Does anyone have some good resources or similar projects that I could use to get acquainted with the ins and outs? I'm using C# 3.5 with SP1 in VS2008 ...

Detecting when modal view has been displayed

This is a fun one... I have an application that has a help screen and is displayed as a modal view. The main view has an action that occurs when the device is shaken. I do not want the action to occur (sounds are played) when the help screen has been displayed. I have tried a few things... here is my code: To display the help screen...

Silverlight 4 Motion and Color Tracking using Webcam

Software Design Question: Since silverlight 4 is out, and it has webcam support, does anyone know the code to track the motion and color ? Is SL4 writable bitmap is the first step to start wrting the code ? I wants to convert specific color motion into action in Silverlight. For example if you move red color pen in front of camera fro...

How to setup motion detection using AForge?

Hi, i'm trying to setup motiondetection using the AForge.NET framework. I'm using the information provided on this page. I've setup a DirectShow videostream which feeds a part of my desktop through a stream. I can choose this stream in the sample videoplayer project which is provided with AForge. (And I see my desktop through the playe...

iPhone Shake event not properly working

I have this inside my viewController: - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { if (event.type == UIEventSubtypeMotionShake) { NSLog(@"I have shaked"); } } Why is this not working? Edit: I do infact have this: - (void) viewWillAppear:(BOOL)animated { [shakeView becomeFirstRespond...

motionBegan and enabled breakpoints in Xcode

So ... we have this bit of motion detection: - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { if (event.type == UIEventTypeMotion && event.subtype == UIEventSubtypeMotionShake) { [[NSNotificationCenter defaultCenter] postNotificationName:@"ShakeBegan" object:self]; } } Innocuous enough. We also c...

Draw image on a form from a separate thread

Hi, I am currently working on a Windows.Forms application. It's basically a simple motion detection problem. I have a button on a form, that when pressed launches a background worker that does the following : Fetch an image from disk Create a new bitmap, to be used as the buffer. Perform Motion Detection From the results of Motion Det...

Faster way to perform rectangle merging based on their intersection

Hi, this is being used in a motion detection problem. Basically, I perform a motion detection algorithm on an image, and get a list of blobs, where each blob hopefully corresponds to an object that has moved. However, we have to merge these blobs as there might be many small ones touching each other that should be one large blob. I merg...

how to code simple motion tracking?

I am making a sentry turret with servos and a paintball gun and need to implement real time motion tracing to make the gun shoot anything that moves. how can I code this(any good algorithms, books, tutorials)? I want to make it myself and not use premade solutions. ...

How can I detect and track people using OpenCV?

I have a camera that will be stationary, pointed at an indoors area. People will walk past the camera, within about 5 meters of it. Using OpenCV, I want to detect individuals walking past - my ideal return is an array of detected individuals, with bounding rectangles. I've looked at several of the built-in samples: None of the Python ...

webcam motion tracking with Python

Is there a simple way to track the motions of a single entity in a webcam feed? For example, I imagine a "hello world" app with an index finger used as mouse pointer. I realize there's still a lot of basic research in this area, so it might be too early to expect an easy to use, generic abstraction. For the sake of completeness, I've s...

Motion detection of a specific object in .net

I need to make a .net application where I must detect a specific object the user is holding, using a camera. If the object must have some specific characteristics so that it can be easily recognized and detected from the surrounding space, please give me some tips (ex a green cube?) What would be the best technique/.net library to use?...

motion computation from video using pyglet in python

Hi, I am writing a simple motion detection program but i want it to be cross platform so im using python and the pyglet library since it provides a simple way to load videos in different formats (specially wmv and mpeg). So far i have the code given below which loads the movie and plays it in a window. Now i need to: 1) grab frame at tim...

Shake Gesture detection in UIWindow subclass

I setup a UIWindow subclass as detailed in an answer from this post: http://stackoverflow.com/questions/150446/how-do-i-detect-when-someone-shakes-an-iphone/1351486#1351486 I am running into an issue where only the methods motionBegan: and motionCancelled: will fire. I need to detect the motionEnded: method, and whatever I do it simply ...

Is android's motion event handling accurate??

Bug I have a weird bug in my piano app. Sometimes keys (and thus notes) hang. I did a lot of debugging and narrowed it down to what looks like androids inaccuracy of motion event handling: DEBUG/(2091): ACTION_DOWN A4 DEBUG/(2091): KeyDown: A4 DEBUG/(2091): ACTION_MOVE A4 => A4 DEBUG/(2091): ACTION_MOVE ignoring DEBUG/(2091): ACTI...

[iPhone] MotionEvents reduce sensibility

Hey guys, since my question was answered really fast and with a high quality the last time I decided to post here again. After hours of trying I finally was able to implement motionEvents in my application (oddly enough I first had to create a new view where I put all my stuff in - somehow it didn't work in a modified window-controller...

how would I use iphone motion detection for an egg shaking-like application?

I am hoping to build an application similar to those egg shaking applications, to better understand how to detect motion on the iphone. I've been looking at accelerometer methods and motion and motion methods, but can't seem to get working what I want to do. The specifics of my need are as follows: I want to be able to play one sound wh...

Faking thermal image camera with aforge or any other .net solution , emgucv, tbeta..

I am simulating a thermal camera effect. I have a webcam at a party pointed at people in front of a wall. I went with background subtraction technique and using Aforge blobcounter I get blobs that I want to fill with gradient coloring. My problem = GetBlobsEdgePoints doesn't return sorted point cloud so I can't use it with, for example, ...

How can you track motion using the iPhone's camera?

I saw that someone has made an app that tracks your feet using the camera, so that you can kick a virtual football on your iPhone screen. How could you do something like this? Does anyone know of any code examples or other information about using the iPhone camera for detecting objects and tracking them? ...