project: A Custom Vision object detection project.
image_ids: For add_image_regions and remove_image_regions, the IDs of the images for which to add or remove regions.
regions: For add_image_regions, the regions to add. See 'Details' below.
region_ids: For remove_image_regions, a vector of region IDs. This is an alternative to image ID for specifying the regions to remove; if this is provided, image_ids is not used.
image: For identify_regions, an image for which to identify possible regions in which an object exists. This can be the ID of an image that was previously uploaded to the project; if not, the image is uploaded. Otherwise, see add_images for how to specify an image to upload.
Returns
For add_image_regions, a data frame containing the details on the added regions.
For remove_image_regions, the value of image_ids invisibly, if this argument was provided; NULL otherwise.
For identify_regions, a list with the following components: projectId, the ID of the project; imageId, the ID of the image; and proposals, a data frame containing the coordinates of each identified region along with a confidence score.
Details
add_image_regions and remove_image_regions let you specify the regions in an image that contain an object. You can use identify_regions to have Custom Vision try to guess the regions for an image.
The regions to add should be specified as a list of data frames, with one data frame per image. Each data frame should have one row per region, and the following columns:
left, top, width, height: the location and dimensions of the region bounding box, normalised to be between 0 and 1.
tag: the name of the tag to associate with the region. Any other columns in the data frame will be ignored.