00001 00002 00003 00004
00005 package require camera
00006 package require jmath
00007 package require premodeler
00008
00009 namespace eval bundler {
00010
00011 proc processDetection { {detectorType 0} sensorName seriesname serienumber path {begin 1} {end 12} {step 1} } {
00012 global engine
00013 global manager
00014 global result
00015 global gTracker
00016 set engine [::premodeler::new_Engine $detectorType $sensorName $seriesname $serienumber $path]
00017 premodeler::Engine_process $engine $begin $end $step
00018 set manager [premodeler::testIFManager $engine]
00019 set gTracker [::premodeler::IFManager_getGTracker $manager]
00020 puts "finished detection"
00021 }00022
00023 proc processBundle { seriesname serienumber path sensorName begin end step } {
00024 set camType ::bundler::ViewsManager_MONO
00025 global gTracker
00026 global bundleResult
00027 global mAdapter
00028 set mAdapter [::bundler::new_ModelerAdapter $seriesname $serienumber $path $sensorName $camType $gTracker]
00029 ::bundler::ModelerAdapter_process $begin $end $step $mAdapater
00030 set bundleResult [::bundler::ModelerAdapter_getTrackedObjects $mAdapater]
00031 puts "finished bundle"
00032 }00033
00034 }00035
00036 package provide bundler 1.0