pysilcam/acquisition.py
def _init_camera(vimba):
    '''Initialize the camera system from vimba object
    Args:
        vimba (vimba object)  :  for example pymba.Vimba()
        
    Returns:
        camera       (Camera) : The camera without settings from the config
    '''

    # get system object
    system = vimba.getSystem()

    # list available cameras (after enabling discovery for GigE cameras)
    if system.GeVTLIsPresent:
        system.runFeatureCommand("GeVDiscoveryAllOnce")
        time.sleep(0.2)
    cameraIds = vimba.getCameraIds()
    for cameraId in cameraIds:
        logger.debug('Camera ID: {0}'.format(cameraId))

    #Check that we found a camera, if not, raise an error
    if len(cameraIds) == 0:
        logger.debug('No cameras detected')
        raise RuntimeError('No cameras detected!')
        camera = None
    else:
        # get and open a camera
        camera = vimba.getCamera(cameraIds[0])
        camera.openCamera()

    return camera
Initialize the camera system from vimba object
    Args:
        vimba (vimba object)  :  for example pymba.Vimba()
        
    Returns:
        camera       (Camera) : The camera without settings from the config
    
Initialize the camera system from vimba object
Initialize the camera system from vimba object
def _init_camera(vimba):
    system = vimba.getSystem()
    if system.GeVTLIsPresent:
        system.runFeatureCommand("GeVDiscoveryAllOnce")
        time.sleep(0.2)
    cameraIds = vimba.getCameraIds()
    for cameraId in cameraIds:
        logger.debug('Camera ID: {0}'.format(cameraId))
    if len(cameraIds) == 0:
        logger.debug('No cameras detected')
        raise RuntimeError('No cameras detected!')
        camera = None
    else:
        camera = vimba.getCamera(cameraIds[0])
        camera.openCamera()
    return camera
def _init_camera ( vimba ) : system = vimba . getSystem ( ) if system . GeVTLIsPresent : system . runFeatureCommand ( "GeVDiscoveryAllOnce" ) time . sleep ( 0.2 ) cameraIds = vimba . getCameraIds ( ) for cameraId in cameraIds : logger . debug ( 'Camera ID: {0}' . format ( cameraId ) ) if len ( cameraIds ) == 0 : logger . debug ( 'No cameras detected' ) raise RuntimeError ( 'No cameras detected!' ) camera = None else : camera = vimba . getCamera ( cameraIds [ 0 ] ) camera . openCamera ( ) return camera
Initialize the camera system from vimba object
Initialize the camera system from vimba object
'''Initialize the camera system from vimba object
    Args:
        vimba (vimba object)  :  for example pymba.Vimba()
        
    Returns:
        camera       (Camera) : The camera without settings from the config
    ''' # get system object # list available cameras (after enabling discovery for GigE cameras) #Check that we found a camera, if not, raise an error # get and open a camera
camera       (Camera) : The camera without settings from the config
camera ( Camera ) : The camera without settings from the config
vimba
for example pymba.Vimba()
for example pymba . Vimba ()