Count the number of predictions in a region of an image
CountInRegion[x, y, width, height]
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.
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