#file: ../ITQ-2015-06-25/rechts-02.aedat
#interesting events in file are from 5200 to 7960 
#dart is coming from left and going on the upper half throuh the window
#time from 314.37 to 314.49 seconds

datafile = '../ITQ-2015-06-25/rechts-02.aedat'

calculator = Calculator()
#open file handler with data calculator and aedata file
handler = DvsDataHandler(datafile,calculator)

#set beginning event index to start with
handler.packageStart = 5250

handler.packageSize = 3000
handler.packageStep = 3000

#visualize
#click on window will show next package of events
view = DvsDataViewer(handler)



#idea one:
#find active area with >=15 events in 10ms
#set mode to track dart
#now track the dart with a mean, where more distant events are weighted less strongo
#calculate a "moving average of the centroid"
#interesting events in file are from 5200 to 7960
#dart is coming from left and going on the upper half throuh the window
#time from 314.37 to 314.49 seconds

#datafile = '../ITQ-2015-06-25/rechts-02.aedat'
#datafile = '../testdata-2015-07-02/sync33-calibrateandhit-slave.aedat'
#datafile = '../FinalSetup-2015-07-06/DVS128-2015-07-06T19-58-41+0200-0336-0.aedat'
datafile = '../FinalSetup-2015-07-06/DVS128-2015-07-06T20-12-54+0200-0336-0.aedat'

calculator = Calculator()
#open file handler with data calculator and aedata file
handler = DvsDataHandler(datafile, calculator)

#set beginning event index to start with
#handler.packageStart = 1799795
handler.packageStart = 0

handler.packageSize = 300
handler.packageStep = 300
handler.debugPackageInfo = False

#configure what animations you want to see
#to pause animation, click on it

#show camera1 dart animation
showView1 = True
#show camera2 dart animation
showView2 = True

#compare both results in two windows
showView3 = False
        self.mean = self.mean  + d * 0.1
        
               
        
        return self
    
    def calculatePackage(self,recordProvider):
        x = self.mean[0]
        y = self.mean[1]
        
        recordProvider.drawCross( int(x),int(y))
        self.__init__()
        
        

datafile = '../ITQ-2015-06-25/rechts-02.aedat'

calculator = Calculator()
#open file handler with data calculator and aedata file
handler = DvsDataHandler(datafile,calculator)

#set beginning event index to start with
handler.packageStart = 0 

#visualize
#click on window will show next package of events
view = DvsDataViewer(handler)



Esempio n. 4
0

#        self.__init__()

#file: ../ITQ-2015-06-25/rechts-02.aedat
#interesting events in file are from 5200 to 7960
#dart is coming from left and going on the upper half throuh the window
#time from 314.37 to 314.49 seconds

datafile = '../ITQ-2015-06-25/rechts-02.aedat'

calculator = Calculator()
#open file handler with data calculator and aedata file
handler = DvsDataHandler(datafile, calculator)

#set beginning event index to start with
handler.packageStart = 5250

handler.packageSize = 3000
handler.packageStep = 3000

#visualize
#click on window will show next package of events
view = DvsDataViewer(handler)

#idea one:
#find active area with >=15 events in 10ms
#set mode to track dart
#now track the dart with a mean, where more distant events are weighted less strongo
#calculate a "moving average of the centroid"