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

Android MotionEvent to detect only ACTION_MOVE

As per android MotionEvent documents: A change has happened during a press gesture (between ACTION_DOWN and ACTION_UP). The motion contains the most recent point, as well as any intermediate points since the last down or move event. ACTION_MOVE…
3
votes
1 answer

Javascript Motion Detection

I am looking for a plugin/library for Javascript that can detect motion in a video stream from a web camera. It needs to have some sort of callback like: Motion.onMotion(function(){ // Do Something Here }); That is literally all I need it to…
medemi68
  • 175
  • 1
  • 1
  • 8
3
votes
1 answer

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 …
Peterdk
  • 15,625
  • 20
  • 101
  • 140
3
votes
1 answer

Smoothing directional (angular) data in R

I'm trying to deal with some motion analysis software tracking errors after the data is exported. For some frames the direction is rotated by 180 degrees from the "true" direction. I would like to smooth the data set so that when the direction…
David D
  • 33
  • 5
3
votes
1 answer

How to fill/calculate motion_val in FFMPEG?

I'm trying to get motion vectors of a mpeg video via ffmpeg (in c++). The problem that I have is, that motion_val along with motion_subsample_log2 and mb_type of the AVFrame class remain empty and/or aren’t initialized (debugger says 0x0) and it…
MenuItem42
  • 143
  • 2
  • 11
3
votes
0 answers

how to measure rate of rotation using using smartphone sensors

I am trying to make a game in which the rate a game event occurs (such as climbing or rowing or spinning a wheel) is proportional to the rate at which the user rotates/spins an android device, using either world coordinates or device coordinates.I…
3
votes
1 answer

How to detect screen tearing programmatically?

Assuming I have recorded an HD video of a Monitor screen and I would like to verify if there is any screen tearing occuring. How would I do this? I have thought of two naive approaches here - 1] I can compare a frame with the previous one and apply…
3
votes
1 answer

Seems like my little android app is running multiple instance

I know this is very lame but I'm totally new to android development. I'm writing a sensor based app which will change wallpaper each time the phone is shaked. Once the app is minimized it runs in background. It works wonderfully when I run it for…
Abhijit
  • 33
  • 6
3
votes
1 answer

composition of 3D rigid transformations

This question belongs to the topic - 'Structure from Motion'. Suppose, there are 3 images. There are point correspondences between image 1-2 and image 2-3, but there's no common point between image 1 and 3. I got the RT (rotation and translation…
3
votes
1 answer

Algorithms for Tracking moving objects with a moving camera

I'm trying to develop an algorithm for real time tracking moving objects with a single moving camera setup as a project, in OpenCV (C++). My basic objectives are Detect motion in an (initially) static frame Track that moving object (camera to…
3
votes
2 answers

Opencv Algorithm to detect moving vehicle in moving/shaking camera

Is there any way in opencv to detect moving vehicle/object when camera is moving/shaking. I have read and implemented various Object Detection algorithms in opencv, but also they detect false areas of frame because of shaking camera. If you have any…
Surinder ツ
  • 1,778
  • 3
  • 16
  • 27
3
votes
2 answers

How to capture motion data in Kinect SDK V1.7 (Avateering XNA)?

I am new to the kinect sdk v1.7. I want to know how to capture motion data from the sample .(http://msdn.microsoft.com/en-us/library/jj131041.aspx) so, how can I make a procedure that can capture the skeleton data into file ? (record) then , read…
Sirius Wang
  • 339
  • 1
  • 5
  • 15
3
votes
0 answers

How detect smooth movement in android

I am trying to detect the movement of android device since my app starts when movement detected, for that i am using accelerometer motion sensor. But it is detecting movement when phone shakes, but not working for smooth movement. I am not getting…
Anand K
  • 233
  • 1
  • 6
  • 21
3
votes
3 answers

detect if the touch stopped on an android device screen

I want to fire a method after a touch has been initiated and left the screen. I can detect the beginning of a touch by setting a OnTouch event to the View but can't detect when the hand leave the screen. I want to detect when does the touch stops.…
SysClaude
  • 146
  • 2
  • 8
3
votes
1 answer

Faster way to perform rectangle merging based on their intersection

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…
Jean Azzopardi
  • 2,289
  • 23
  • 36