tracksperanto 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.2.1 / 2009-09-21
2
+
3
+ * Fixed the binary that was not able to properly pass the importer class to the pipeline
4
+
1
5
  === 1.2.0 / 2009-09-20
2
6
 
3
7
  * Add experimental MatchMoverPro import and export support
data/bin/tracksperanto CHANGED
@@ -79,7 +79,7 @@ end
79
79
 
80
80
  pipe = Tracksperanto::Pipeline::Base.new
81
81
  pipe.progress_block = lambda{|percent, msg| puts("#{msg}..#{percent.to_i}%") }
82
- pipe.run(input_file, :pix_w => width, :pix_h => height, :parser => parser) do | scaler, slipper, golden, reformat, shift |
82
+ pipe.run(input_file, :pix_w => width, :pix_h => height, :parser => reader_klass) do | scaler, slipper, golden, reformat, shift |
83
83
  slipper.slip = slip
84
84
  scaler.x_factor = scale_x
85
85
  scaler.y_factor = scale_y
data/lib/pipeline/base.rb CHANGED
@@ -64,6 +64,7 @@ class Tracksperanto::Pipeline::Base
64
64
  end
65
65
 
66
66
  def detect_importer_or_use_options(path, opts)
67
+ puts opts[:parser].inspect
67
68
  d = Tracksperanto::FormatDetector.new(path)
68
69
  if d.match? && d.auto_size?
69
70
  return [1, 1, d.importer_klass]
data/lib/tracksperanto.rb CHANGED
@@ -4,7 +4,7 @@ require 'delegate'
4
4
 
5
5
  module Tracksperanto
6
6
  PATH = File.expand_path(File.dirname(__FILE__))
7
- VERSION = '1.2.0'
7
+ VERSION = '1.2.1'
8
8
 
9
9
  module Import; end
10
10
  module Export; end
@@ -27,4 +27,19 @@ class SyntheyesImportTest < Test::Unit::TestCase
27
27
  assert_in_delta 886.212, first_kf.abs_y, DELTA
28
28
  assert_in_delta 30.0, first_kf.residual, DELTA
29
29
  end
30
+
31
+ def test_syntheyes_import_from_victorw
32
+ fixture = File.open(File.dirname(__FILE__) + "/samples/testalltrackers_VictorW.txt")
33
+ parser = Tracksperanto::Import::Syntheyes.new
34
+ parser.width = 1920
35
+ parser.height = 1080
36
+
37
+ trackers = parser.parse(fixture)
38
+ for tracker in trackers
39
+ puts tracker.inspect
40
+ STDOUT.flush
41
+ end
42
+
43
+ end
44
+
30
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracksperanto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov