| 
    IVALab Python Libraries
    
   Collection of code for computer vision and robotics with specific API. 
   | 
 
OpenCV based camera interface. More...


Public Member Functions | |
| None | __init__ (self, configs=CfgColor(), K=None) | 
| Constructor for OpenCV2 camera interface.  More... | |
| def | capture (self) | 
| Get the next frame.  More... | |
| def | captureRGB (self) | 
| Snag the next set of RGB.  More... | |
| def | display (self, image, ratio=0.5, window_name="Color") | 
| def | get (self, key) | 
| def | start (self) | 
| Start capturing the stream.  More... | |
| def | stop (self) | 
| Stop capturing the stream.  More... | |
Static Public Member Functions | |
| def | buildFromFile (configFile) | 
Public Attributes | |
| color_sensor | |
| gCW | |
| ready | |
OpenCV based camera interface.
This class API serves as a simpler wrapper for the cv2 python camera capture interface, which itself is a wrapper for the C++ implementation.
| None __init__ | ( | self, | |
configs = CfgColor(),  | 
        |||
K = None  | 
        |||
| ) | 
Constructor for OpenCV2 camera interface.
| [in] | configs | Settings to apply. | 
      
  | 
  static | 
| def capture | ( | self | ) | 
Get the next frame.
| [out] | color_image | The color image | 
| [out] | succ_flag | Success flag of fetching next frame. | 
| def captureRGB | ( | self | ) | 
Snag the next set of RGB.
Captures the color and depth pair as an RGBD image instance. The depth map should be returned in standard units (meters).
| [out] | data | RGBD image data as an ImageRGBD element. | 
| [out] | flSuccess | Success flag. True = both frames fetched. | 
| def display | ( | self, | |
| image, | |||
ratio = 0.5,  | 
        |||
window_name = "Color"  | 
        |||
| ) | 
| def get | ( | self, | |
| key | |||
| ) | 
Get attributes specified by the key
Args:
    key (str):      Choices: [exposure, gain, W_rgb, H_rgb, W_dep, H_dep, depth_scale, K]
Returns:
    value
 
| def start | ( | self | ) | 
Start capturing the stream.
| def stop | ( | self | ) | 
Stop capturing the stream.
| color_sensor | 
| gCW | 
| ready |