opencv

opencv / BodyDetection / 1.0.0

README.md
Uses a pretrained model to detect bodies in a given image. Send your input as a url to a picture that is hosted on our data API, and the output is the same image, with rectangles around the detected bodies, written to the same collection. A text file that contains all the coordinates of the rectangles is also output to the same collection for convenience.

Input:

  • (Required): Image URL. (key = "imageUrl")
  • (Required): Image save location on data API. (key = "outputUrl") (default = "data://.algo/temp/output.jpg")

Output:

  • Image Save Location. (key = "imageSaveLocation")
  • Rectangle coordinates Save Location. (key = "rectsSaveLocation")

Example

  • Parameter 1: Image URL.
  • Parameter 2: Save Location.
{
  "imageUrl": "data://opencv/SampleImages/smiling-people.jpg",
  "outputUrl": "data://.algo/temp/save_location.jpg"
}

Output:

{
  "rectsSaveLocation": "data://.algo/temp/save_location.jpgrects.txt",
  "imageSaveLocation": "data://.algo/temp/save_location.jpg"
}