Ejemplo n.º 1
0

# def main():
if 1:
	#------------------Init-----------------------
	#----Get mean images for bg subtraction-------
	# path = '/Users/colin/data/ICU_7March2012_Head/'
	# path2 = '/Users/colin/data/ICU_7May2012_Wide/'
	framerate = 30;
	path = '/Users/colin/data/ICU_7May2012_Close/'
	startTime = 1600; #close
	path = '/Users/colin/data/ICU_7May2012_Wide/'
	startTime = 8000; #wide
	#---------------------------------------------
	startTime2 = startTime+12;
	reader1 = ICUReader(path, framerate, startTime, cameraNumber=0, viz=0, vizSkel=0, skelsEnabled=0)
	# reader2 = ICUReader(path2, framerate, startTime2, cameraNumber=1, viz=0, vizSkel=0, skelsEnabled=0)

	depthImgs1 = []
	depthImgs2 = []
	depthStackInd1 = 0
	depthStackInd2 = 0
	for i in xrange(10):
		reader1.run()
		depthImgs1.append(reader1.depthDataRaw)
		# reader2.run()
		# depthImgs2.append(reader2.depthDataRaw)

	depthImgs1 = np.dstack(depthImgs1)
	# depthImgs2 = np.dstack(depthImgs2)
Ejemplo n.º 2
0
import numpy as np
import cv, cv2
import scipy.ndimage as nd
sys.path.append('/Users/colin/code/Kinect-Projects/icuRecorder/')
from icuReader import ICUReader as ICUReader

camOffset = 11 # There is an ~11 second offset between the two cameras

clockTime = time.time()
# path = '/Users/colin/data/ICU_7March2012_Head/'
path = '/Users/colin/data/ICU_7May2012_Wide/'
framerate = 301;
# Points of interest {IV: 1350/1490}
startTime_ = 1000;
# startTime_ = 5350;
reader1 = ICUReader(path, framerate, startTime_, cameraNumber=0, clockTime=clockTime, viz=1, vizSkel=1)

# path2 = '/Users/colin/data/ICU_7March2012_Foot/'
path2 = '/Users/colin/data/ICU_7May2012_Close/'
startTime2 = startTime_+camOffset;
reader2 = ICUReader(path2, framerate, startTime2, cameraNumber=1, clockTime=clockTime, viz=1, vizSkel=1)


# cv.NamedWindow("a")
# cv.NamedWindow("b")

while 1:
	t = time.time()
	reader1.run(t)
	reader2.run(t)
	cv.WaitKey(1)
Ejemplo n.º 3
0
sys.path.append('/Users/colin/code/Kinect-Projects/icuRecorder/')
from icuReader import ICUReader as DepthReader

camOffset = 11  # There is an ~11 second offset between the two cameras

clockTime = time.time()
# path = '/Users/colin/data/ICU_7March2012_Head/'
path = '/Users/colin/data/ICU_7May2012_Wide/'
framerate = 601
# Points of interest {IV: 1350/1490}
startTime_ = 1000
# startTime_ = 5350;
reader1 = DepthReader(path,
                      framerate,
                      startTime_,
                      cameraNumber=0,
                      clockTime=clockTime,
                      viz=1,
                      vizSkel=1)

# path2 = '/Users/colin/data/ICU_7March2012_Foot/'
path2 = '/Users/colin/data/ICU_7May2012_Close/'
startTime2 = startTime_ + camOffset
reader2 = DepthReader(path2,
                      framerate,
                      startTime2,
                      cameraNumber=1,
                      clockTime=clockTime,
                      viz=1,
                      vizSkel=1)