Using PyTesseract for extracting the telemetry data from SpaceX, Rocket Lab and Arianespace launch videos. Velocity, altitude and acceleration are then plotted for each stage (SpaceX) or for the main stage (Rocket Lab, Arianespace). Outliers are detected and ignored by applying acceleration and vertical speed boundaries. Realtime performance can be reached by only analysing every nth frame. Accelerations are the combination of velocity change rates and acceleration due to gravitational forces. Furthermore, accelerations are shown as a moving average.
Arguments: --video
(Video local path), --start
(Start time in video in seconds), --duration
(Duration of video from start time). The
supported time formats are: 1:13:12, 3:12, 144 (h:min:s, min:s, s). The --type
flag specifies where the text detector looks for velocity and altitude data, while the plot title can be set with --title
.
Example: python rocket_data.py --video ift5-1080p.mp4 --start 0:24 --duration 9:52 --type SpaceX --title IFT-5
Tesseract must be installed on the system and referenced, installation link for Windows: https://github.com/UB-Mannheim/tesseract/wiki/Windows-build
On Ubuntu install with:
sudo apt install tesseract-ocr
sudo apt install libtesseract-dev
Then clone this repo and install the requirements:
git clone https://github.com/leon-seidel/launch_video_data.git
cd launch_video_data
pip install -r requirements.txt