← Back to directory

Finds the external contours in a caller-supplied binary mask and reports, for ea...

https://medien.halowerk.com/v1/oss-opencv-external-contour-metrics

Overview

Finds the external contours in a caller-supplied binary mask and reports, for each, its area, perimeter, centroid and bounding rectangle, plus the total foreground pixel count. The division of labour is deliberate: segmentation is a domain decision, so the mask comes from you and the measurement comes from here, which keeps the numbers reproducible and independent of any threshold this service might have chosen.

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider HALOWERK Medien
Source bazaar
Indexed 2026-10-25 17:35:27

Health

Status healthy
Latency (p50) 43ms
Uptime (30d) 100.0%
Reliability Score 97/100
Last Checked 2026-10-31 07:18:51
Last Healthy 2026-10-31 07:18:51
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "bodyType": "json", "exampleUrl": "https://medien.halowerk.com/v1/oss-opencv-external-contour-metrics/schema#/requestExample", "method": "POST", "schemaUrl": "https://medien.halowerk.com/v1/oss-opencv-external-contour-metrics/schema#/inputSchema", "type": "http" }

Output Schema

{ "example": { "operation": "external-contour-metrics", "result": { "contours": [ { "area": 400, "bounding_box": [ 10, 10, 21, 21 ], "centroid": [ 20, 20 ], "perimeter": 80, "vertex_count": 4 }, { "area": 200, "bounding_box": [ 50, 10, 21, 21 ], "centroid": [ 56.66666666666666, 16.666666666666664 ], "perimeter": 68.28427124023438, "vertex_count": 3 } ], "foreground_pixels": 672, "warnings": [ "Only external contours are measured; holes are excluded. Polygon area differs from foreground-pixel count." ] }, "runtime_ms": 0.795, "upstream": { "binary_sha256": "1fd4eb220f9986baa0ea0492cbcbedf85b868e792cbcac5f69e10d067a2f956c", "components": [ "findContours", "moments", "contourArea", "arcLength", "boundingRect" ], "numpy_version": "2.5.0", "package_version": "4.13.0.92", "project": "OpenCV", "version": "4.13.0" } }, "type": "json" }