How to use the datasets.Camera function in datasets

To help you get started, we’ve selected a few datasets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lacatus / TFM / datasets / pets096.py View on Github external
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(
github lacatus / TFM / datasets / icglab1.py View on Github external
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 + '/cam131.avi')
    cam2_g1.video.readvideo(variables.current_video_path + '/cam132.avi')
    cam3_g1.video.readvideo(variables.current_video_path + '/cam133.avi')
    cam4_g1.video.readvideo(variables.current_video_path + '/cam134.avi')

    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)
github lacatus / TFM / datasets / pets098.py View on Github external
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'
github lacatus / TFM / datasets / pets098.py View on Github external
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')
github lacatus / TFM / datasets / icglab6.py View on Github external
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 + '/cam131.avi')
    cam2_g1.video.readvideo(variables.current_video_path + '/cam132.avi')
    cam3_g1.video.readvideo(variables.current_video_path + '/cam133.avi')
    cam4_g1.video.readvideo(variables.current_video_path + '/cam134.avi')

    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)
github lacatus / TFM / datasets / grazptz1.py View on Github external
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'
github lacatus / TFM / datasets / icglab4.py View on Github external
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 + '/cam131.avi')
    cam2_g1.video.readvideo(variables.current_video_path + '/cam132.avi')
    cam3_g1.video.readvideo(variables.current_video_path + '/cam133.avi')
    cam4_g1.video.readvideo(variables.current_video_path + '/cam134.avi')

    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)
github lacatus / TFM / datasets / pets095.py View on Github external
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')
github lacatus / TFM / datasets / icglab1.py View on Github external
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 + '/cam131.avi')
    cam2_g1.video.readvideo(variables.current_video_path + '/cam132.avi')
    cam3_g1.video.readvideo(variables.current_video_path + '/cam133.avi')
    cam4_g1.video.readvideo(variables.current_video_path + '/cam134.avi')

    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)