A method, implemented on a mobile device comprising a processor, a computer program, and a camera, for measuring time of a moving object during performance of at least one training exercise, the method comprising the steps of:
- placing the mobile device in a fixed stationary viewing angle position;
- setting the camera to enter an image calibration mode of the computer program;
- setting the camera to enter an algorithm calibration mode of the computer program;
- setting the camera in a detection mode of the computer program;
- and
- executing a time measuring command on the computer program to measure the time of the moving object during performance of the at least one training exercise;
- wherein the step of setting the camera to enter the image calibration mode subsequently includes:
- capturing at least one digital image for image calibration,
- processing each captured digital image,
- determining characteristic image parameters for the camera, and
- setting the determined characteristic image parameters as fixed image-specific parameters;
- wherein the step of setting the camera to enter the algorithm calibration mode subsequently includes:
- capturing a digital image for algorithm calibration,
- converting the digital image into a numeric value, wherein the numeric value is a histogram value obtained from a histogram of the digital image captured for algorithm calibration, and
- continuously looping through following sub-steps for a predefined time to calibrate a deviation tolerance value:
- capturing a subsequent digital image,
- converting the subsequent digital image into a subsequent numeric reference value,
- repetitively determining a deviation of the subsequent numeric reference value from a previous numeric value until a pre-defined criteria is met, and
- determining the deviation tolerance value;
- wherein the step of setting the camera in the detection mode subsequently includes:
- capturing a digital image for the detection mode,
- converting the digital image into a numeric value, wherein the numeric value is a histogram value obtained from a histogram of the digital image captured for the detection mode,
- continuously looping through the following sub-steps until a deviation between the subsequent numeric value and the previous numeric value exceeds the deviation tolerance value, the following sub-steps including:
- capturing a subsequent digital image,
- converting the subsequent digital image into a subsequent numeric value, and
- determining a deviation between the subsequent numeric value and the previous numeric value;
- and
- wherein the time measuring command for execution on the mobile device is triggered after the deviation exceeds the deviation tolerance value.