smistad / annotationweb

A web-based annnotation system for easy annotation of image sequences such as ultrasound and camera recordings
MIT License
32 stars 18 forks source link

Caliper task + ECG support #67

Closed smistad closed 1 year ago

smistad commented 1 year ago

Created the caliper task and added ECG support.

For ECG support simply add a JSON file called ecg.json to the recording folders with the following structure. Frame here is the index of the closest image frame, NONE otherwise.

{
    "ecg": [
        {
            "time": 59.163042333333316,
            "value": 68.0,
            "frame": "NONE"
        },
        {
            "time": 59.16470899999998,
            "value": 82.0,
            "frame": 0
        },
        {
            "time": 59.166375666666646,
            "value": 95.0,
            "frame": "NONE"
        },
        ....
}

This PR also includes a fix which allows spacebar to be used to control play/pause.