|
IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
Base class for camera runners. More...

Public Member Functions | |
| None | __init__ (self, configs, K=None) |
| Base class instantiator for camera runners. More... | |
| def | get (self, key) |
| def | get_configs (self) |
| def | get_frames (self) |
| def | readClicks (self) |
| Read the mouse clicks recorded on a window. More... | |
| def | registerMouseClicks (self, str windowName) |
| Register a window to record mouse clicks. More... | |
| def | set (self, key, value) |
| def | set_configs (self, configs) |
| def | set_intrinsic (self, K) |
| def | start (self) |
| def | stop (self) |
Public Attributes | |
| configs | |
| configuration dictionary for the camera More... | |
| K | |
| the camera's intrinsic matrix More... | |
| pts | |
| callback to append clicks to points list More... | |
Base class for camera runners.
Defines some shared functionality interfaces
| None __init__ | ( | self, | |
| configs, | |||
K = None |
|||
| ) |
| def get | ( | self, | |
| key | |||
| ) |
Get a particular configuration.
Args:
key (Any): The configuration name
Reimplemented in RGBD_Aligned, D435_Runner, and D435_Runner.
| def get_configs | ( | self | ) |
| def readClicks | ( | self | ) |
Read the mouse clicks recorded on a window.
Read the mouse clicks recorded on a window. Returns None if there are no clicks ready
Returns:
clicks :
(ndarray(2, N)) - N is the number of clicks. Shape is [[x], [y]]
| def registerMouseClicks | ( | self, | |
| str | windowName | ||
| ) |
Register a window to record mouse clicks.
| windowName | The name of the window to caputre clicks on |
Register a window to record mouse clicks
Args:
windowName (string) : The name of the window to caputre clicks on
| def set | ( | self, | |
| key, | |||
| value | |||
| ) |
Set a particular configuration.
Args:
key (Any): The configuration name
value (Any): The value to be set
| def set_configs | ( | self, | |
| configs | |||
| ) |
| def set_intrinsic | ( | self, | |
| K | |||
| ) |
Sets the intrinsic matrix
Args:
K (Any): the new intrinsic matrix
| def start | ( | self | ) |
Starts the camera
Reimplemented in Depth, Color, RGBD, Depth, Color, Depth, Color, Replay, D435_Runner, and ReplayColor.
| def stop | ( | self | ) |
| configs |
configuration dictionary for the camera
| K |
the camera's intrinsic matrix
| pts |
callback to append clicks to points list
| [in] | event | the event that happened |
| [in] | x | the x location of the mouse |
| [in] | y | the y location of the mouse |
| [in] | flags | flags for the function |
| [in] | params | parameters for the function |