Oss Opencv Rectified Stereo Disparity
by HALOWERK Medien in Other
Runs semi-global block matching over a rectified grayscale stereo pair and returns per-pixel disparity together with the count of pixels that could actually be matched. Pixels with no reliable match stay unmatched rather than being interpolated, so occlusions and textureless regions are visible in the output instead of hidden by plausible-looking values. Disparities are positive and bounded at 16 pixels, which suits small-baseline rigs and close range.
https://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity- Price
- $0.004
- per call in USDC
- Uptime
- 97.0%
- last 30 days
- Response time
- 162 ms
- 219 ms slowest 5%
- Last check
- Passed
- 8 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity
Each call costs $0.004 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. Shortened to fit. The code below sends this shortened example too: put in your own values.
POST https://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity
content-type: application/json
{
"left_image": [
[
139,
2,
135,
160,
156,
89,
193,
96,
123,
190
],
[
199,
157,
238,
78,
198,
174,
181,
31,
227,
95
],
[
90,
162,
35,
182,
25,
2,
109,
254,
179,
160
],
[
132,
206,
18,
57,
111,
110,
80,
52,
13,
200
],
[
236,
8,
96,
158,
251,
39,
168,
18,
217,
87
],
[
180,
204,
219,
252,
224,
55,
205,
161,
220,
66
],
[
201,
176,
239,
25,
225,
239,
45,
21,
245,
45
],
[
169,
54,
156,
97,
122,
99,
68,
127,
103,
82
],
[
149,
72,
230,
175,
191,
133,
185,
151,
156,
152
],
[
222,
144,
160,
227,
143,
23,
146,
227,
71,
150
]
],
"right_image": [
[
156,
88,
120,
189,
139,
2,
135,
160,
156,
89
],
[
112,
199,
208,
178,
199,
157,
238,
78,
198,
174
],
[
103,
67,
224,
20,
90,
162,
35,
182,
25,
2
],
[
24,
136,
59,
178,
132,
206,
18,
57,
111,
110
],
[
159,
108,
34,
143,
236,
8,
96,
158,
251,
39
],
[
105,
35,
188,
222,
180,
204,
219,
252,
224,
55
],
[
119,
235,
218,
204,
201,
176,
239,
25,
225,
239
],
[
242,
209,
198,
174,
169,
54,
156,
97,
122,
99
],
[
74,
32,
219,
212,
149,
72,
230,
175,
191,
133
],
[
10,
5,
146,
115,
222,
144,
160,
227,
143,
23
]
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
left_image | array of array of integer | Yes | |
right_image | array of array of integer | Yes |
Example response
The provider's example. We can't check it without paying. Shortened for display.
Example response, 301 lines
{
"operation": "rectified-stereo-disparity",
"result": {
"disparity_pixels": [
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
10.0625,
13.1875,
13.9375
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
9.9375,
13,
13,
13.4375
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
12.375,
13,
13,
12.0625
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.3125,
3.4375,
2.875,
2.9375
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.3125,
3.3125,
3,
2.9375
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.3125,
3.3125,
3.1875,
3
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.375,
3.375,
3.1875,
3
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.1875,
3.3125,
3.1875,
2.9375
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.1875,
3.1875,
3.1875,
2.8125
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
3.1875,
3.1875,
2.75
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6.375,
6.125
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6.375,
6.125
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
6.0625
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null,
…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.004.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity' \
-H 'content-type: application/json' \
--data-raw '{"left_image":[[139,2,135,160,156,89,193,96,123,190],[199,157,238,78,198,174,181,31,227,95],[90,162,35,182,25,2,109,254,179,160],[132,206,18,57,111,110,80,52,13,200],[236,8,96,158,251,39,168,18,217,87],[180,204,219,252,224,55,205,161,220,66],[201,176,239,25,225,239,45,21,245,45],[169,54,156,97,122,99,68,127,103,82],[149,72,230,175,191,133,185,151,156,152],[222,144,160,227,143,23,146,227,71,150]],"right_image":[[156,88,120,189,139,2,135,160,156,89],[112,199,208,178,199,157,238,78,198,174],[103,67,224,20,90,162,35,182,25,2],[24,136,59,178,132,206,18,57,111,110],[159,108,34,143,236,8,96,158,251,39],[105,35,188,222,180,204,219,252,224,55],[119,235,218,204,201,176,239,25,225,239],[242,209,198,174,169,54,156,97,122,99],[74,32,219,212,149,72,230,175,191,133],[10,5,146,115,222,144,160,227,143,23]]}'
# 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://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity' \
-H 'content-type: application/json' \
--data-raw '{"left_image":[[139,2,135,160,156,89,193,96,123,190],[199,157,238,78,198,174,181,31,227,95],[90,162,35,182,25,2,109,254,179,160],[132,206,18,57,111,110,80,52,13,200],[236,8,96,158,251,39,168,18,217,87],[180,204,219,252,224,55,205,161,220,66],[201,176,239,25,225,239,45,21,245,45],[169,54,156,97,122,99,68,127,103,82],[149,72,230,175,191,133,185,151,156,152],[222,144,160,227,143,23,146,227,71,150]],"right_image":[[156,88,120,189,139,2,135,160,156,89],[112,199,208,178,199,157,238,78,198,174],[103,67,224,20,90,162,35,182,25,2],[24,136,59,178,132,206,18,57,111,110],[159,108,34,143,236,8,96,158,251,39],[105,35,188,222,180,204,219,252,224,55],[119,235,218,204,201,176,239,25,225,239],[242,209,198,174,169,54,156,97,122,99],[74,32,219,212,149,72,230,175,191,133],[10,5,146,115,222,144,160,227,143,23]]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: 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.004 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.004" });
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.004 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmedien.halowerk.com%2Fv1%2Foss-opencv-rectified-stereo-disparity&method=POST
const res = await pay("https://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"left_image": [
[
139,
2,
135,
160,
156,
89,
193,
96,
123,
190
],
[
199,
157,
238,
78,
198,
174,
181,
31,
227,
95
],
[
90,
162,
35,
182,
25,
2,
109,
254,
179,
160
],
[
132,
206,
18,
57,
111,
110,
80,
52,
13,
200
],
[
236,
8,
96,
158,
251,
39,
168,
18,
217,
87
],
[
180,
204,
219,
252,
224,
55,
205,
161,
220,
66
],
[
201,
176,
239,
25,
225,
239,
45,
21,
245,
45
],
[
169,
54,
156,
97,
122,
99,
68,
127,
103,
82
],
[
149,
72,
230,
175,
191,
133,
185,
151,
156,
152
],
[
222,
144,
160,
227,
143,
23,
146,
227,
71,
150
]
],
"right_image": [
[
156,
88,
120,
189,
139,
2,
135,
160,
156,
89
],
[
112,
199,
208,
178,
199,
157,
238,
78,
198,
174
],
[
103,
67,
224,
20,
90,
162,
35,
182,
25,
2
],
[
24,
136,
59,
178,
132,
206,
18,
57,
111,
110
],
[
159,
108,
34,
143,
236,
8,
96,
158,
251,
39
],
[
105,
35,
188,
222,
180,
204,
219,
252,
224,
55
],
[
119,
235,
218,
204,
201,
176,
239,
25,
225,
239
],
[
242,
209,
198,
174,
169,
54,
156,
97,
122,
99
],
[
74,
32,
219,
212,
149,
72,
230,
175,
191,
133
],
[
10,
5,
146,
115,
222,
144,
160,
227,
143,
23
]
]
}),
});
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.004 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.004"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://medien.halowerk.com/v1/oss-opencv-rectified-stereo-disparity",
json={
"left_image": [
[
139,
2,
135,
160,
156,
89,
193,
96,
123,
190,
],
[
199,
157,
238,
78,
198,
174,
181,
31,
227,
95,
],
[
90,
162,
35,
182,
25,
2,
109,
254,
179,
160,
],
[
132,
206,
18,
57,
111,
110,
80,
52,
13,
200,
],
[
236,
8,
96,
158,
251,
39,
168,
18,
217,
87,
],
[
180,
204,
219,
252,
224,
55,
205,
161,
220,
66,
],
[
201,
176,
239,
25,
225,
239,
45,
21,
245,
45,
],
[
169,
54,
156,
97,
122,
99,
68,
127,
103,
82,
],
[
149,
72,
230,
175,
191,
133,
185,
151,
156,
152,
],
[
222,
144,
160,
227,
143,
23,
146,
227,
71,
150,
],
],
"right_image": [
[
156,
88,
120,
189,
139,
2,
135,
160,
156,
89,
],
[
112,
199,
208,
178,
199,
157,
238,
78,
198,
174,
],
[
103,
67,
224,
20,
90,
162,
35,
182,
25,
2,
],
[
24,
136,
59,
178,
132,
206,
18,
57,
111,
110,
],
[
159,
108,
34,
143,
236,
8,
96,
158,
251,
39,
],
[
105,
35,
188,
222,
180,
204,
219,
252,
224,
55,
],
[
119,
235,
218,
204,
201,
176,
239,
25,
225,
239,
],
[
242,
209,
198,
174,
169,
54,
156,
97,
122,
99,
],
[
74,
32,
219,
212,
149,
72,
230,
175,
191,
133,
],
[
10,
5,
146,
115,
222,
144,
160,
227,
143,
23,
],
],
},
)
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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 8 h ago | Passed | 402 | 171 ms | $0.004 |
| 17 h ago | Passed | 402 | 127 ms | $0.004 |
| 28 h ago | Passed | 402 | 122 ms | $0.004 |
| 45 h ago | Timed out | - | - | - |
| 4 days ago | Timed out | - | - | - |
Show 10 older checks
| 5 days ago | Passed | 402 | 155 ms | $0.004 |
| 5 days ago | Passed | 402 | 117 ms | $0.004 |
| 6 days ago | Passed | 402 | 126 ms | $0.004 |
| 6 days ago | Passed | 402 | 42 ms | $0.004 |
| 7 days ago | Passed | 402 | 135 ms | $0.004 |
| 7 days ago | Passed | 402 | 125 ms | $0.004 |
| 7 days ago | Passed | 402 | 118 ms | $0.004 |
| 8 days ago | Passed | 402 | 192 ms | $0.004 |
| 8 days ago | Passed | 402 | 125 ms | $0.004 |
| 8 days ago | Passed | 402 | 137 ms | $0.004 |