VideoActionPredictor
Version 1.0.0 (13.7 KB) by
호진
VideoActionPredictor uses MATLAB to extract HOG features from videos, predict activities with an LSTM model, and send predictions to server
Overview:The VideoActionPredictor project uses MATLAB to process video files, extract features using Histogram of Oriented Gradients (HOG), and predict human activities using a Long Short-Term Memory (LSTM) neural network. The predicted activities are then sent to a FastAPI server.
Key Components:
- Feature Extraction:
- The videoToFeatures function reads video files and extracts HOG features from selected frames. These features are essential inputs for the LSTM model.
- Model Training:
- The script loads video data, extracts features, and trains an LSTM model on categorized activities such as 'fall', 'lie', 'nothing', 'sit', and 'walk'.
- Key parameters include the number of hidden units, dropout rate, batch size, and number of epochs.
- Prediction and Classification:
- The check_directory function monitors a specified directory for new video files, processes each video to extract features, and uses the trained LSTM model to classify the activity.
- The predicted activity is then sent to a FastAPI server using HTTP POST requests.
- FastAPI Server:
- The FastAPI server receives the predicted activities and can handle the results, such as storing them in a database or triggering specific actions.
Cite As
호진 (2026). VideoActionPredictor (https://www.mathworks.com/matlabcentral/fileexchange/170461-videoactionpredictor), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
|
