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
3
votes
1 answer

Motion detection using OpenCV/C++, threshold always become zero

I work on C++ crowd detection code with “OpenCV”, that takes 2 frames and subtracts them. Then compare the result with threshold. This is the first time I deal with “OpenCV” for C++ and I don't have much information about it. These are the steps of…
Afnan
  • 31
  • 1
  • 3
3
votes
3 answers

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…
bugBurger
  • 6,950
  • 9
  • 32
  • 39
3
votes
2 answers

Android: Using the accelerometer to create a simple maraca app

I'm trying to learn how to use the accelerometer by creating (what I thought would be) a simple app to mimic a crude maraca. The objective is that when the phone is flicked downwards quickly, it emits a maraca sound at the end of that flick, and…
Dicky Moore
  • 956
  • 3
  • 10
  • 32
3
votes
1 answer

Motion detection versus conserving battery

In my app, I have a service that is constantly running in the background, in time ranges the user determines. In theory, I need to constantly know the user's distance from some destination. So for optimizations, I'm implementing my own proximity…
Mugen
  • 8,301
  • 10
  • 62
  • 140
3
votes
2 answers

iOS Camera Color Recognition in Real Time: Tracking a Ball

I have been looking for a bit and know that people are able to track faces with core image and openGL. However I am not that sure where to start the process of tracking a colored ball with the iOS camera. Once I have a lead to being able to track…
DTDev
  • 307
  • 4
  • 15
3
votes
1 answer

Android turn screen off while running tasks in background

I have a requirement in android application where i want to turn off screen when no motion has been detected(Motion detection is done using camera). But the camera should be running in background and taking pictures while the screen is off and as…
Sanober Malik
  • 2,765
  • 23
  • 30
3
votes
1 answer

motion detection opencv

I am attempting to use a straightforward motion detection code to detect movement from a camera. I'm using the OpenCV library and I have some code that takes the difference between two frames to detect a change and then it uses a threshold to create…
user1858302
  • 31
  • 1
  • 2
3
votes
1 answer

Motion detection on IP video input stream - Android/Java

As described in post title, I'm looking for a way to detect motion/movement on the input stream from CCTV camera (IP/WiFi). Anyone know best way how I can connect to IP video stream and monitor for motion?
PsychoX
  • 1,088
  • 4
  • 21
  • 43
3
votes
2 answers

Android Gyroscope verse Accelerometer

I am building an Android game and I want to figure out whether the user tilts the device to the left or the right (Similar to how Temple Run works when you move the man from side to side). I have read many tutorials and examples and I made sample…
Ushal Naidoo
  • 2,704
  • 1
  • 24
  • 37
3
votes
1 answer

How to decode mpeg motion vector using OpenCV in C++?

I want to decode the MPEG motion vectors using OpenCV in C++. Is there any function in OpenCV through which we can get this? Brightness may not be constant through out the video in my case. I am referring paper Efficient camera motion…
Vishal
  • 673
  • 3
  • 12
  • 24
2
votes
1 answer

Motion detection of iOS device in 3d Space

Ive been working with the iOS sensors a bit off late and i wanted to write an app that would accurately track the motion of the phone in space. I wanted to know if its possible to track the motion of the device and detect gestures, such as drawing a…
Sagar
  • 555
  • 9
  • 24
2
votes
1 answer

unable to detect shake event when my phones screen is off in android

In my application I want to detect the shake event and I'm using SensorEventListener, the code is working fine when my activity is running in foreground. But when I press the lock button of the phone to lock the screen, the shake event can't be…
picaso
  • 713
  • 2
  • 14
  • 26
2
votes
3 answers

How do you make and recognize gestures?

I am using a web cam to get video feed and then performing motion tracking on this video feed. The motion tracker returns (x,y) co-ordinates continuously. I want to use these (x,y) to recognize gestures such as "swipe left", "swipe right", "swipe…
codemaniac
  • 879
  • 1
  • 11
  • 31
2
votes
2 answers

Detect changes in a video

I have a friend whose job is to watch a video and take note of times when something happens on the screen. Most of the time it's just a blue/white screen, so there is very little change. It is an outside video, so the color changes as the day goes…
Alex
  • 535
  • 6
  • 16
2
votes
1 answer

How to check if player's direction changed in x direction while following mouse motion in pygame

I'm creating a simple vertical scroller hyper casual game using pygame. Here my player follows the mouse motion and changes it's location based on mouse position. Now I want to play a beep sound whenever the player changes it's direction from left…