Text this: A human gait temporal parameters calculation algorithm