3
$\begingroup$

Is it possible to have the status of a tracked pattern stored in a python variable (per frame)? For example, a pattern is successfully tracked for some frames, then the pattern is hidden behind something, afterward it is visible and successfully tracked again. Would be great to use the status of "actually tracked" vs. "pattern lost" in my python script.

$\endgroup$
2
$\begingroup$

As far as I am aware, this is not possible. You could probably edit the C source code to output these variables for use in your script if you wanted to though.

You can view the Python API section of this page to make sure if you want.

$\endgroup$
1
$\begingroup$

The status of a track (actually tracked vs. pattern lost) is available (per frame), stored in a property called mute. If the pattern is successfully tracked in a frame, the status is FALSE, if the pattern is lost, the status is TRUE.

The status of a track is available via bpy:

bpy.data.movieclips[NumberOfMovieclip].tracking.tracks[NameOfTrack].markers.find_frame(FrameNumber).mute
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.