CountInRegion[]

✅ Works in Interactive Notebook

Category: Find.

Count the number of predictions in a region of an image

Syntax

CountInRegion[x, y, width, height]

Arguments

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[]

See Also

Made with ❤️ by capjamesg