Count the number of predictions in a region of an image
Syntax
CountInRegion[x, y, width, height]
Arguments
x
- The x coordinate of the top left corner of the region.y
- The y coordinate of the top left corner of the region.width
- The width of the region.height
- The height of the region.
Examples
The following example loads an image, detects all the people in the image, gets the number of people in a region of the image, and shows how many detections were identified in the region.
Load["./photo.jpg"]
Detect["person"]
CountInRegion[0, 0, 100, 100]
Say[]