76trust / 100

Object Count

by bild.halowerk.com in Company & people data

x402 APIPassing, checked 3 h ago

Count people, vehicles, animals or any of 80 object classes in a photo, optionally only inside a polygon area; overlapping tiles find small objects in crowds and car parks. No identification, no crops. RT-DETRv2-S (Apache-2.0, COCO 2017, pinned ONNX) runs on the whole image and, for images with a long side of 900 px or more, on 6 overlapping tiles (3x2 or 2x3, 20 % overlap) so small persons and vehicles are not lost at 640x640.

POST
https://bild.halowerk.com/v1/object-count
Price
$0.01
per call in USDC
Uptime
93.5%
last 30 days
Response time
129 ms
182 ms slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://bild.halowerk.com/v1/object-count

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://bild.halowerk.com/v1/object-count
content-type: application/json

{
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAJ1BMVEV6uOjo16j/003jzW9+ueX50lTmzmuIu9eyw6fmzmqzxKWzw6b40VZx3hZPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAV0lEQVQ4y2NgGLzAyzR4Cz559klKSmoFeBR4KgFBCh4Fi0AKNPAoMAIpUMajIAikQJWQAh1KrNhEyJFuhLzJnkQgoBg8TINbGEbBsAOCBMCoglEFJCkAAMKYNKuC2Gj3AAAAAElFTkSuQmCC",
  "targets": [
    "person",
    "vehicle"
  ],
  "tiling": "off"
}

Parameters

ParameterTypeRequiredDescription
anchorstringNoPoint of each box that must lie inside the region (bottom_center = where a person or car touches the ground). One of: bottom_center, center. Default: "bottom_center".
image_base64stringNoThe image (PNG, JPEG, WebP, GIF, TIFF or AVIF) as base64 or data: URL, at most 10 MB decoded. Give either image_base64 or image_url.
image_urlstring (uri)NoPublic http(s) URL of the image, fetched once (at most 10 MB). Private and local addresses are refused.
include_boxesbooleanNoAlso return the counted boxes (pixels). Default: false.
min_scorenumberNoMinimum detection score (0.4 balances missed people in crowds against false detections). Default: 0.4.
regionarray of array of numberNoOptional counting area as polygon [[x,y],...] in normalised image coordinates (0..1, origin top left).
targetsarray of stringNoWhat to count: COCO class names or the groups vehicle, motor_vehicle, animal. Pallets and other non-COCO objects are not available. Default: ["person","vehicle"].
tilingstringNoauto = whole image plus 6 tiles for images >= 900 px; off = one pass. One of: auto, off. Default: "auto".

Example response

The provider's example. We can't check it without paying.

Example response, 34 lines
{
  "limitations": [
    "Counts are estimates: heavily occluded people in dense crowds and tiny or cut-off objects are missed, and rare double counts remain.",
    "Only the 80 COCO classes can be counted; pallets, parcels and other goods are not available.",
    "No identification or tracking: each call counts one still image."
  ],
  "result": {
    "anchor": null,
    "by_class": {
      "vehicle": {}
    },
    "counts": {
      "person": 0,
      "vehicle": 0
    },
    "image": {
      "height": 48,
      "width": 64
    },
    "min_score": 0.4,
    "model": {
      "file": "onnx/model.onnx",
      "license": "Apache-2.0",
      "model": "RT-DETRv2-S (r18vd backbone) trained on COCO 2017, 80 classes; ONNX export of PekingU/rtdetr_v2_r18vd (Apache-2.0)",
      "sha256": "583a236ac21c95a7fd94f284fc21485e42355bfef82c27011ba78fbc09ee87e2",
      "source": "https://huggingface.co/onnx-community/rtdetr_v2_r18vd-ONNX/tree/936f90b6a476c6da4dfe053fc521af55285976ba"
    },
    "passes": 1,
    "region_applied": false,
    "tiles": 0
  },
  "service": "object-count",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://bild.halowerk.com/v1/object-count' \
  -H 'content-type: application/json' \
  --data-raw '{"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAJ1BMVEV6uOjo16j/003jzW9+ueX50lTmzmuIu9eyw6fmzmqzxKWzw6b40VZx3hZPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAV0lEQVQ4y2NgGLzAyzR4Cz559klKSmoFeBR4KgFBCh4Fi0AKNPAoMAIpUMajIAikQJWQAh1KrNhEyJFuhLzJnkQgoBg8TINbGEbBsAOCBMCoglEFJCkAAMKYNKuC2Gj3AAAAAElFTkSuQmCC","targets":["person","vehicle"],"tiling":"off"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://bild.halowerk.com/v1/object-count' \
  -H 'content-type: application/json' \
  --data-raw '{"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAJ1BMVEV6uOjo16j/003jzW9+ueX50lTmzmuIu9eyw6fmzmqzxKWzw6b40VZx3hZPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAV0lEQVQ4y2NgGLzAyzR4Cz559klKSmoFeBR4KgFBCh4Fi0AKNPAoMAIpUMajIAikQJWQAh1KrNhEyJFuhLzJnkQgoBg8TINbGEbBsAOCBMCoglEFJCkAAMKYNKuC2Gj3AAAAAElFTkSuQmCC","targets":["person","vehicle"],"tiling":"off"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbild.halowerk.com%2Fv1%2Fobject-count&method=POST
const res = await pay("https://bild.halowerk.com/v1/object-count", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAJ1BMVEV6uOjo16j/003jzW9+ueX50lTmzmuIu9eyw6fmzmqzxKWzw6b40VZx3hZPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAV0lEQVQ4y2NgGLzAyzR4Cz559klKSmoFeBR4KgFBCh4Fi0AKNPAoMAIpUMajIAikQJWQAh1KrNhEyJFuhLzJnkQgoBg8TINbGEbBsAOCBMCoglEFJCkAAMKYNKuC2Gj3AAAAAElFTkSuQmCC",
    "targets": [
      "person",
      "vehicle"
    ],
    "tiling": "off"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://bild.halowerk.com/v1/object-count",
        json={
            "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwBAMAAABTZWEsAAAAJ1BMVEV6uOjo16j/003jzW9+ueX50lTmzmuIu9eyw6fmzmqzxKWzw6b40VZx3hZPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAV0lEQVQ4y2NgGLzAyzR4Cz559klKSmoFeBR4KgFBCh4Fi0AKNPAoMAIpUMajIAikQJWQAh1KrNhEyJFuhLzJnkQgoBg8TINbGEbBsAOCBMCoglEFJCkAAMKYNKuC2Gj3AAAAAElFTkSuQmCC",
            "targets": [
                "person",
                "vehicle",
            ],
            "tiling": "off",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402117 ms$0.01
22 h agoTimed out---
3 days agoTimed out---
4 days agoPassed402124 ms$0.01
4 days agoPassed402126 ms$0.01
Show 10 older checks
5 days agoPassed402124 ms$0.01
5 days agoPassed402122 ms$0.01
6 days agoPassed402116 ms$0.01
6 days agoPassed402117 ms$0.01
6 days agoPassed402125 ms$0.01
7 days agoPassed402143 ms$0.01
7 days agoPassed402121 ms$0.01
7 days agoPassed402141 ms$0.01
7 days agoPassed402128 ms$0.01
8 days agoPassed402136 ms$0.01