lib/export/syntheyes.rb in tracksperanto-2.11.2 vs lib/export/syntheyes.rb in tracksperanto-2.11.3

- old
+ new

@@ -23,14 +23,16 @@ values = [ @tracker_name, frame, convert_to_uv(abs_float_x, @width), convert_to_uv(abs_float_y, @height) * -1, get_outcome_code(frame) ] - @io.puts("%s %d %.6f %.6f %d" % values) + @io.puts(LINE_TEMPLATE % values) end private - STATUS_KF = 30 # When tracker starts or reenables + + LINE_TEMPLATE = "%s %d %.6f %.6f %d" + STATUS_STD = 7 # For a standard frame (not a keyframe) STATUS_REENABLE = 15 # When the tracker goes back into view # It's very important that we provide an outcome code for Syntheyes. Regular keyframes get # STATUS_STD, and after a gap we have to signal STATUS_REENABLE, otherwise this might bust solves.