Questions tagged [motion-detection]

Related to detection of motion related to programming issues, like computer vision, sensor control, etc.

Motion detection is a process of confirming a change in position of an object relative to its surroundings or the change in the surroundings relative to an object. This detection can be achieved by both mechanical and electronic methods. In addition to discrete, on or off motion detection, it can also consist of magnitude detection that can measure and quantify the strength or speed of this motion or the object that created it.

Motion can be detected by: sound (acoustic sensors), opacity (optical and infrared sensors and video image processors), geomagnetism (magnetic sensors, magnetometers), reflection of transmitted energy (infrared laser radar, ultrasonic sensors, and microwave radar sensors), electromagnetic induction (inductive-loop detectors), and vibration (triboelectric, seismic, and inertia-switch sensors).

424 questions
0
votes
1 answer

How to setup motion detection using AForge?

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…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
1 answer

cvCalcOpticalFlowPyrLK not working as expected

I know this is a well documented problem but I didn't manage to find a satisfactory solution online. Here goes. I am using cvCalcOpticalFlowPyrLK to track motion of feature points. I find the feature points with cvGoodFeaturesToTrack and refine it…
0
votes
1 answer

Using Motion class for lumia 520

I am trying to get the trajectory of the mobile using the sensor data. I tried logging accelerometer data but noticed that it includes gravitational acceleration also. The developer website says that the Motion class can give cleaner data since it…
0
votes
0 answers

run leap motion in background on osx c++

since SDK Version 0.8 my app does not run in background anymore. has someone an idea? class LeapController :public Leap::Listener { //... void onInit(const Leap::Controller& controller) { std::cout << "Initialized" <<…
0
votes
2 answers

Compare consecutive frames to determine direction of motion using OpenCV

I need to compare every frame with the previous and determine in which direction the movement has occurred. Is this possible by just getting the difference between the two frames? Will it work with slow motion of about 2 m/s? Also, how could I…
timemanx
  • 4,493
  • 6
  • 34
  • 43
0
votes
1 answer

Using the accelerometer in a Windows Phone 8 device to determine if device is not moving

I'm looking at trying to make my WP8 app more accurate in terms of location detection by making use of the accelerometer to detect if the device has stopped moving (in the context of driving, so horizontally only presumably). I've read about the…
0
votes
2 answers

Detect if device is moving iOS

Fact: iOS has a way to detect acceleration. But if a user opens my app while in movement and stays moving at the same speed, is there a way to "figure this out" without using the GPS? I'm asking this because: My app is very much likely to be used…
Leonardo
  • 10,737
  • 10
  • 62
  • 155
0
votes
1 answer

Can I create a motion colorizing pixel shader in WPF?

I have a video playing of lines being drawn on the screen. Is it possible to create a pixel shader (for WPF) that turns newly colored pixels a certain color for N milliseconds? That way, there can be some indication to the user to movement on the…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
0
votes
0 answers

Grabbing a 10 second clip after motion detection in OpenCV

I am currently writing a code in order to detect small objects that are moving using OpenCV and C++. I have motion detection, logging of detects, and bounding boxes working well. Now I am stuck on a way to take the video, and after I get a…
0
votes
1 answer

Why is the lines of optical flow are not drawn in my code

I'm trying to use the optical flow, but optical flow lines are not drawn and instead only points, what's the problem ? Here is the source code of the project. Looked through the debugger. GDB shows that always p0.x = p1.x and p0.y = p1.y. but why ?…
user1886376
0
votes
1 answer

What method should I use to track a moving object with a moving camera (using resources of RaspberryPi)

I'm playing around with motion detection through a webcam connected to RaspberryPi using OpenCV and cvBlob in C++. I want to kick it up a notch and make a robot that detects and tracks movement driving towards it and turning left/ring to keep the…
0
votes
1 answer

setting RGB colors to detect change when white objects are placed in front of the camera, Android

I have an android phone that has the camera facing a brown wooden desk. I want it to fire an intent when someone places a white piece of paper on the desk. on the wooden desk the RGB values returned by the camera are 85 to 120 for all three RGB…
Kevik
  • 9,181
  • 19
  • 92
  • 148
0
votes
1 answer

Motion detection code {EDIT}

EDIT Human walk motion Detect link explains how to detect human motion with Opencv 2.3 on Visual Studio 2010 with C++. I downloaded the source code motemp9.c along with the text files walkImgs.txt and output.txt and the header filter.h but do not…
Chaitali
  • 240
  • 2
  • 13
0
votes
0 answers

Algorithms for Motion Detection in python with opencv?

I have been finding out about Motion Detection algorithm for very long but unable to decide which algorithm will give me best performance. I am uisng a IP camera to capture video stream using opencv and further like to detect Motion(Human motion…
0
votes
1 answer

iphone: Hands free gestures

In my iPhone app, I require to recognize the gesture or motion made by the user on the view without touching it. I want the hand free gestures to be recognized and perform a function on view. I need that the image should move with the gesture…