Find what passes in front of a surface
track_occludersFind what passes in front of a tracked surface, so a picture pinned to it stays behind a person, a hand or a car. It finds what query names on every frame of the track's source range, as segment_subject does, and keeps it where it covers the surface: what the camera sees over the surface is in front of it. It stores the mask on the track, and then keeps those pixels of the footage in front of the pinned picture. The answer gives the mask Asset ID, the times something covers the surface, and the pin to write. When nothing covers the surface, nothing is stored. Run it after track_plane, and again after you split or merge the track. Uses about 57 credits a minute of the track's range, billed by the second, as segment_subject. Read builtin-object-tracking first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | A source second where it is in front of the surface and all of it shows, which you checked with preview_frame. null picks one itself. | |
| query | Yes | What passes in front of the surface, in a few words: "person", "hand", "the red car". null is a person. | |
| trackId | Yes | The surface's object track, as track_plane answered it (track_...). | |
| 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. |