IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
Public Member Functions | Public Attributes | List of all members
ConfigOak Class Reference

config general parameters of OAK camera More...

Inheritance diagram for ConfigOak:
Inheritance graph
[legend]
Collaboration diagram for ConfigOak:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, str yamlFilePath=None)
 the constructor. More...
 
def getConfig (self)
 returns config dictionary More...
 
def setConfig (self, config)
 allows setting all configs at once More...
 
def setConfigParameter (self, cam, param, value)
 allows the setting of a specific parameter of a camera to a certain value More...
 
- Public Member Functions inherited from CfgCamera
def __init__ (self, init_dict=None, key_list=None, new_allowed=True)
 
- Public Member Functions inherited from AlgConfig
def __setattr__ (self, name, value)
 
def dump (self, **kwargs)
 

Public Attributes

 config
 

Detailed Description

config general parameters of OAK camera

config general parameters of OAK camera

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
str  yamlFilePath = None 
)

the constructor.

If yamlFilePath is not give, default initialization is done

Parameters
[in]yamlFilePaththe file path of the yaml to read camera initailization parameters from
config general parameters of OAK camera
Args:
    filePath (str):
        path of yaml configuration file

Member Function Documentation

◆ getConfig()

def getConfig (   self)

returns config dictionary

Returns
config the config dictionary
returns config dictionary
Returns:
    congif: the config dictionary

◆ setConfig()

def setConfig (   self,
  config 
)

allows setting all configs at once

Parameters
[in]configa configuration dictionary
allows setting all configs at once
Args:
    config: the configuration dictionary

◆ setConfigParameter()

def setConfigParameter (   self,
  cam,
  param,
  value 
)

allows the setting of a specific parameter of a camera to a certain value

Parameters
[in]camname of the camera to change the value of
[in]paramthe name of the camera parameters @value[in] value to set parameter to
Note
if parameters are unclear, print out config
allows the setting of a specific parameter of a camera to a certain value

Args:
    cam (any): name of camera
    param (any): name of camera parameter
    value (any): value to set parameter to

Member Data Documentation

◆ config

config

The documentation for this class was generated from the following file: