Example #1
0
def loadcameras():

    global cam1_g1
    global cam2_g1
    global cam3_g1

    cam1_g1 = Camera()
    cam2_g1 = Camera()
    cam3_g1 = Camera()

    cam1_g1.video.readvideo(variables.current_video_path + '/cam-131.avi')
    cam2_g1.video.readvideo(variables.current_video_path + '/cam-132.avi')
    cam3_g1.video.readvideo(variables.current_video_path + '/cam-133.avi')

    cam1_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-131.jpg')
    cam2_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-132.jpg')
    cam3_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-133.jpg')

    cam1_str = variables.current_dataset_path + '/cameracalib/camera001.cfg'
    cam2_str = variables.current_dataset_path + '/cameracalib/camera002.cfg'
    cam3_str = variables.current_dataset_path + '/cameracalib/camera003.cfg'

    cam1_g1.readconfigfile(cam1_str)
    cam2_g1.readconfigfile(cam2_str)
    cam3_g1.readconfigfile(cam3_str)
Example #2
0
def loadcameras():

    global cam1_g1

    cam1_g1 = Camera()

    cam1_g1.video.readvideo(variables.current_video_path + '/camera001.avi')

    cam1_g1.video.readbg(
        variables.current_dataset_path + '/background/camera001.jpg')

    cam1_str = variables.current_dataset_path + '/cameracalib/camera001.cfg'

    cam1_g1.readconfigfile(cam1_str)
Example #3
0
def loadcameras():

    global cam1_g1

    cam1_g1 = Camera()

    #cam1_g1.video.readvideo(variables.current_video_path + '/Meet_WalkSplit.mpg')
    cam1_g1.video.readvideo(variables.current_video_path + '/crop_1.avi')

    cam1_g1.video.readbg(
        variables.current_dataset_path + '/background/background.jpg')

    cam1_str = variables.current_dataset_path + '/cameracalib/camera001.cfg'

    cam1_g1.readconfigfile(cam1_str)
Example #4
0
def loadcameras():

    global cam1_g1
    global cam2_g1
    global cam3_g1
    global cam4_g1

    cam1_g1 = Camera()
    cam2_g1 = Camera()
    cam3_g1 = Camera()
    cam4_g1 = Camera()

    cam1_g1.video.readvideo(variables.current_video_path + "/camera001.avi")
    cam2_g1.video.readvideo(variables.current_video_path + "/camera002.avi")
    cam3_g1.video.readvideo(variables.current_video_path + "/camera003.avi")
    cam4_g1.video.readvideo(variables.current_video_path + "/camera004.avi")

    cam1_g1.video.readbg(variables.current_video_path + "/background/camera001.jpg")
    cam2_g1.video.readbg(variables.current_video_path + "/background/camera002.jpg")
    cam3_g1.video.readbg(variables.current_video_path + "/background/camera003.jpg")
    cam4_g1.video.readbg(variables.current_video_path + "/background/camera004.jpg")

    cam1_str = variables.current_dataset_path + "/cameracalib/camera001.cfg"
    cam2_str = variables.current_dataset_path + "/cameracalib/camera002.cfg"
    cam3_str = variables.current_dataset_path + "/cameracalib/camera003.cfg"
    cam4_str = variables.current_dataset_path + "/cameracalib/camera004.cfg"

    cam1_g1.readconfigfile(cam1_str)
    cam2_g1.readconfigfile(cam2_str)
    cam3_g1.readconfigfile(cam3_str)
    cam4_g1.readconfigfile(cam4_str)
Example #5
0
def loadcameras():

    global cam1_g1
    global cam2_g1
    global cam3_g1
    global cam4_g1

    cam1_g1 = Camera()
    cam2_g1 = Camera()
    cam3_g1 = Camera()
    cam4_g1 = Camera()

    cam1_g1.video.readvideo(variables.current_video_path + '/cam-131.avi')
    cam2_g1.video.readvideo(variables.current_video_path + '/cam-132.avi')
    cam3_g1.video.readvideo(variables.current_video_path + '/cam-133.avi')
    cam4_g1.video.readvideo(variables.current_video_path + '/cam-134.avi')

    cam1_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-131.jpg')
    cam2_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-132.jpg')
    cam3_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-133.jpg')
    cam4_g1.video.readbg(
        variables.current_dataset_path + '/background/cam-134.jpg')

    cam1_str = variables.current_dataset_path + '/cameracalib/camera001.cfg'
    cam2_str = variables.current_dataset_path + '/cameracalib/camera002.cfg'
    cam3_str = variables.current_dataset_path + '/cameracalib/camera003.cfg'
    cam4_str = variables.current_dataset_path + '/cameracalib/camera004.cfg'

    cam1_g1.readconfigfile(cam1_str)
    cam2_g1.readconfigfile(cam2_str)
    cam3_g1.readconfigfile(cam3_str)
    cam4_g1.readconfigfile(cam4_str)