robot_skills.util.image_operations

Functions

img_recognitions_to_rois(recognitions)

Extract the Region of Interest from a list of image recognitions

img_cutout(image, rois)

cutout the rois from the image

Module Contents

robot_skills.util.image_operations.img_recognitions_to_rois(recognitions)[source]

Extract the Region of Interest from a list of image recognitions

Parameters:

recognitions (list[image_recognition_msgs/Recognition]) – list of image recognitions

Returns:

list of Regions of Interest

Return type:

list[sensor_msgs/RegionOfInterest]

robot_skills.util.image_operations.img_cutout(image, rois)[source]

cutout the rois from the image

Parameters:
  • image (sensor_msgs/Image) – image

  • rois (list[sensor_msgs/RegionOfInterest]) – Regions of Interest

Returns:

Cutouts from the image

Return type:

list[sensor_msgs/Image]