Module: Tracksperanto::SimpleExport

Overview

Implements just_export for quickly pushing trackers out through an exporter without using Pipeline plumbing

Instance Method Summary collapse

Instance Method Details

#just_export(trackers_array, comp_width, comp_height) ⇒ Object

Acccepts an array of Tracker objects and comp size. Before calling this, initialize the exporter with the proper IO handle


7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/tracksperanto/simple_export.rb', line 7

def just_export(trackers_array, comp_width, comp_height)
  lint = Tracksperanto::Tool::Lint.new(self)
  
  lint.start_export(comp_width, comp_height)
  trackers_array.each do | t |
    lint.start_tracker_segment(t.name)
    t.each do | kf |
      lint.export_point(kf.frame, kf.abs_x, kf.abs_y, kf.residual)
    end
    lint.end_tracker_segment
  end
  lint.end_export
end