How to classify direction of step using image processing

3 visualizaciones (últimos 30 días)
Tamir Shriki
Tamir Shriki el 27 de Abr. de 2021
Editada: Tarunbir Gambhir el 17 de Jun. de 2021
A person holds smartphone (while he walks) in front of him and record video in live. That means the person is moving with the camera
The thing is - i need to determine which direction he turned - left/right/backward/forward (these only)
Whats is the simplest way to do that? If there isn't, what should i change so it will be?

Respuestas (1)

Tarunbir Gambhir
Tarunbir Gambhir el 17 de Jun. de 2021
Editada: Tarunbir Gambhir el 17 de Jun. de 2021
If you have access to the Computer Vision Toolbox, you may refer to 'estimateFlow' function to get the optical flow matrix. Using the average of vector directions in the optical flow matrix, you can estimate the direction of camera movement.
You could also have a look at 'vision.BlockMatcher' function, as it can also give horizontal and vertical components of motion between two inputs.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by