Fix a frame of an object track
edit_trackFix one frame of an object track and carry the fix to its neighbours, without running the tracker again. Give the frame's corners, its box, or only the corners that are wrong (points), in any space: pass corners read off a preview with space preview and its previewId as they are. How the fix is carried: each corner's move at the fixed frame, in source pixels, is added to the same corner on the frames around it times a weight. The weight is 1 at the fixed frame and falls in a straight line to 0 at until, or at the next lost frame, or at the track's end, whichever comes first. propagate says which way it goes. Lost frames are never moved. The fixed frame counts as tracked. Fix the first frame of a flagged range and let the fix fade out where the range ends; for a long drift fix a frame every second or so. The answer ends with the track's new quality verdict and flagged ranges, and a preview_range call with overlays ["tracks"] that shows the changed frames on the film: run it to check. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | The second of the frame to fix (atSpace says what it is). With space preview the preview's own time is used. | |
| box | Yes | [x0, y0, x1, y1] with x1 > x0 and y1 > y0. A box track takes it as it is; a plane track's corners are moved and scaled so the box around them is this box. null when you pass corners or points. | |
| space | Yes | The space of this call's coordinates. null or source: pixels of the asset file. preview: pixels of a preview image you were shown, with previewId; its time is that preview's time. film: scene pixels from the frame's centre; film_norm: 0 to 1 of the frame; clip: the clip's own picture (with clipId). The tool converts them to the asset's pixels through the film's real transforms. | |
| until | Yes | The second where the carried fix fades to nothing (atSpace says what it is). With both, the same distance is used on each side of at. null: it fades out at the next lost frame, or at the track's end. | |
| clipId | Yes | The film clip that plays this asset, when space or atSpace needs one and several clips play it. null picks the clip that shows the asset at that time. | |
| points | Yes | Some corners only, each named: e.g. [{corner: "top right", point: [612, 140]}] when the quality check says the top right corner drifts. The other corners stay. null when you pass corners or box. | |
| atSpace | Yes | What this call's times are. null or source: seconds into the asset file. timeline: seconds of the film, read through the clip that plays the asset then (clipId to pick one). | |
| corners | Yes | The frame's four corners in order top left, top right, bottom right, bottom left. On a box track the box around them is kept. null when you pass box or points. | |
| trackId | Yes | The object track id, as the tracking tool printed it or search_assets lists it (objectTracks). | |
| previewId | Yes | With space preview or preview_norm: the previewId the preview_frame, preview_range or preview_timeline answer printed. Else null. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| propagate | Yes | Where the fix is carried: none (this frame only), forward, backward, or both (null). |