Questions tagged [kalman-filter]

The Kalman filter is a mathematical method. Its purpose is to reduce noise and randomness in collected data, making the recorded data closer to the actual.

The Kalman filter is a mathematical method named after Rudolf E. Kalman. Its purpose is to use measurements observed over time, containing noise (random variations) and other inaccuracies, and produce values that tend to be closer to the true values of the measurements and their associated calculated values. The Kalman filter has many applications in technology, and it is an essential part of space and military technology development.

A very simple example and perhaps the most commonly used type of Kalman filter is the phase-locked loop, which is now ubiquitous in FM radios and most electronic communications equipment. Extensions and generalizations to the method have also been developed.

Kalman Filter for visual tracking

In many visual tracking applications it is very important that measurements from images are very stable. This is a difficult task as cameras can move, there's always distortion and noise. Kalman filter is frequently used in order to smooth measurements and have more stable data.

Source: wikipedia

580 questions
42
votes
2 answers

kalman 2d filter in python

My input is 2d (x,y) time series of a dot moving on a screen for a tracker software. It has some noise I want to remove using Kalman filter. Does someone can point me for a python code for Kalman 2d filter? In scipy cookbook I found only a 1d…
Noam Peled
  • 3,978
  • 3
  • 39
  • 46
37
votes
2 answers

How to use Kalman filter in Python for location data?

[EDIT] The answer by @Claudio gives me a really good tip on how to filter out outliers. I do want to start using a Kalman filter on my data though. So I changed the example data below so that it has subtle variation noise which are not so extreme…
kramer65
  • 39,074
  • 90
  • 255
  • 436
22
votes
3 answers

Explain process noise terminology in Kalman Filter

I am just learning Kalman filter. In the Kalman Filter terminology, I am having some difficulty with process noise. Process noise seems to be ignored in many concrete examples (most focused on measurement noise). If someone can point me to some…
frank
  • 1,178
  • 1
  • 14
  • 34
19
votes
1 answer

Is there any example of cv2.KalmanFilter implementation?

I'm trying to build a veeery simple tracker for 2D objects using python wrapper for OpenCV (cv2). I've only noticed 3 functions: KalmanFilter (constructor) .predict() .correct(measurement) My idea is to create a code to check if kalman is working…
Jairo Vadillo
  • 329
  • 1
  • 3
  • 13
18
votes
5 answers

How to detect walking with Android accelerometer

I'm writing an application and my aim is to detect when a user is walking. I'm using a Kalman filter like this: float kFilteringFactor=0.6f; gravity[0] = (accelerometer_values[0] * kFilteringFactor) + (gravity[0] * (1.0f -…
havanakoda
  • 183
  • 1
  • 1
  • 7
17
votes
2 answers

Implement a Kalman filter to smooth data from deviceOrientation API

I'm trying to smooth the data I'm getting from the deviceOrientation API to make a Google Cardboard application in the browser. I'm piping the accelerometer data straight into the ThreeJs camera rotation but we're getting a lot of noise on the…
16
votes
3 answers

Sensor fusioning with Kalman filter

I'm interested, how is the dual input in a sensor fusioning setup in a Kalman filter modeled? Say for instance that you have an accelerometer and a gyro and want to present the "horizon level", like in an airplane, a good demo of something like this…
Theodor
  • 4,937
  • 12
  • 38
  • 53
14
votes
1 answer

Using PyKalman on Raw Acceleration Data to Calculate Position

This is my first question on Stackoverflow, so I apologize if I word it poorly. I am writing code to take raw acceleration data from an IMU and then integrate it to update the position of an object. Currently this code takes a new accelerometer…
Alex
  • 155
  • 1
  • 6
14
votes
6 answers

Integrating gyro and accelerometer readings

Possible Duplicate: Combine Gyroscope and Accelerometer Data I have read a number of papers on Kalman filters, but there seem to be few good publically accessible worked examples of getting from mathematical paper to actual working code. I have a…
moonshadow
  • 75,857
  • 7
  • 78
  • 116
13
votes
6 answers

Use Kalman filter to track the position of an object, but need to know the position of that object as an input of Kalman filter. What is going on?

I am trying to study how to use Kalman filter in tracking an object (ball) moving in a video sequence by myself so please explain it to me as I am a child. By some algorithms (color analysis, optical flow...), I am able to get a binary image of…
John
  • 3,574
  • 8
  • 37
  • 77
13
votes
3 answers

Opencv kalman filter prediction without new observtion

I wan to use Opencv Kalman filter implementation for smooth some noise points. So I've tried to code a simple test for it. Let's say I have an observation (a point). Each frame I'm receiving new observation, I call Kalman predict and Kalman correct.…
nkint
  • 10,470
  • 30
  • 93
  • 159
12
votes
1 answer

Variable time step in Kalman Filter

I am using the Kalman Filter opencv library to use the Kalman estimator capabilities. My program does not enforce real time recursion. My question is, when the transition matrix has elements dependent on the time step, do I have to update the…
Paulo Neves
  • 869
  • 11
  • 21
11
votes
1 answer

Best book for learning sensor fusion, specifically regarding IMU and GPS integration

I have a requirement of building an Inertial Measurement Unit (IMU) from the following sensors: Accelerometer Gyroscope Magnetometer I must integrate this data to derive the attitude of the sensor platform and the external forces involved (eg.…
James
  • 2,236
  • 1
  • 23
  • 49
10
votes
1 answer

How to determine relative position using accelerometer and gyro data

I am designing a robot, and need to track the distance and direction of the robot motion, Nothing in 3D, I only need x,y and angle in x y plane. My question : Is it possible to use gyro and accelerometer with kalman filtering or any other methods…
srinathhs
  • 1,828
  • 4
  • 17
  • 31
10
votes
1 answer

OpenCV Kalman filter

I have three gyroscope values, pitch, roll and yaw. I would like to add Kalman filter to get more accurate values. I found the opencv library, which implements a Kalman filter, but I can't understand it how is it really work. Could you give me any…
Roland Soós
  • 2,649
  • 4
  • 29
  • 45
1
2 3
38 39