2.6.0 • Published 2 years ago

@balljames/calibration v2.6.0

Weekly downloads
24
License
ISC
Repository
bitbucket
Last release
2 years ago

BallJames Calibration

This React component makes it possible to perform camera calibration on images of a football pitch. The input for this component is the image, a model of the pitch (fullsize, futsal etc), an optional previous calibration and the type of camera. Whenever the enduser has finished with the calibration and is happy with the result, the calibration object will be saved. This object should be dumped in a file called calibration.json, which will serve as an input for BallJames to be able to process the video data.

Installation

npm -i @balljames/calibration styled-components

Note that @balljames/calibration has 1 peer dependency: styled-components. This is needed for correct functioning of the component.

Usage

import {Calibration, models} from '@balljames/calibration';

const TestComponent = () => {
    const [calibration, setCalibration] = useState();

    return (
        <div class="containerDiv">
            <Calibration model={models.FullPitchModel(68,105)} image={image} saveCalibration={setCalibration} cameraType="unknown"/>
        </div>
    )
}
parametermeaning
modelThe pitch model. This can be one of FullPitchModel, FutsalModel (6 points), FutsalModelTopOfBox (8 points including half circle at the top of the box)
imageThis should be a URL to an image. This can also be a data url
saveCalibrationMethod receiving the final calibration object
cameraType"unknown" or any other value received by BallJames
previousCalibration (optional)Any previous calibration can speed up a new calibration

Changelog

versionchanges
1.1.0First release version
1.1.1New Futsal pitch model with 15 clickpoints (FutsalModel15). This model has an optional third parameter for the goalWidth which is 5m by default
2.6.0

2 years ago

2.5.2

2 years ago

2.5.1

2 years ago

2.5.4

2 years ago

2.5.3

2 years ago

2.5.6

2 years ago

2.5.5

2 years ago

2.5.0

2 years ago

2.4.1

2 years ago

3.0.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago