Zum Inhalt
HALOWERK

Medienwerk

oss opencv dense frame optical flow

Computes dense Farneback optical flow between two consecutive grayscale frames and returns the horizontal and vertical displacement of every pixel. Unlike sparse tracking this covers the whole image, which is what you want for measuring motion in regions with no distinct features to track — smoke, water, crowds, a panning background. Both frames must be the same size and should come from the same camera at a short interval.

POST https://medien.halowerk.com/v1/oss-opencv-dense-frame-optical-flow

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
first_framearrayJa
second_framearrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "first_frame": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255
        },
        "minItems": 16,
        "maxItems": 256
      },
      "minItems": 16,
      "maxItems": 256
    },
    "second_frame": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 255
        },
        "minItems": 16,
        "maxItems": 256
      },
      "minItems": 16,
      "maxItems": 256
    }
  },
  "required": [
    "first_frame",
    "second_frame"
  ],
  "additionalProperties": false,
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Numeric JSON arrays only. Additionally enforce equal paired dimensions, nondegenerate geometry, maximum 32768 pixels/image, 131072 scalars/array, and 1048576 encoded bytes. No paths or network resources."
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "first_frame": [
    [
      196,
      238,
      156,
      55,
      103,
      60,
      158,
      129,
      206,
      218,
      14,
      34,
      211,
      255,
      31,
      32
    ],
    [
      62,
      22,
      220,
      201,
      133,
      162,
      51,
      212,
      223,
      178,
      216,
      220,
      13,
      35,
      203,
      10
    ],
    [
      118,
      77,
      146,
      195,
      188,
      236,
      193,
      113,
      86,
      52,
      215,
      95,
      42,
      13,
      69,
      123
    ],
    [
      160,
      224,
      195,
      173,
      75,
      117,
      11,
      112,
      254,
      170,
      122,
      112,
      48,
      75,
      35,
      246
    ],
    [
      59,
      13,
      32,
      59,
      192,
      161,
      61,
      78,
      177,
      141,
      56,
      192,
      104,
      116,
      135,
      15
    ],
    [
      112,
      136,
      52,
      184,
      31,
      85,
      96,
      158,
      34,
      112,
      45,
      230,
      19,
      141,
      108,
      12
    ],
    [
      82,
      193,
      118,
      134,
      69,
      88,
      160,
      51,
      49,
      205,
      99,
      145,
      17,
      215,
      79,
      198
    ],
    [
      149,
      178,
      8,
      8,
      76,
      33,
      71,
      12,
      149,
      241,
      107,
      147,
      93,
      68,
      181,
      112
    ],
    [
      123,
      230,
      171,
      205,
      239,
      203,
      178,
      208,
      56,
      221,
      144,
      26,
      25,
      143,
      124,
      49
    ],
    [
      104,
      224,
      162,
      158,
      152,
      157,
      46,
      106,
      122,
      126,
      164,
      158,
      191,
      30,
      140,
      184
    ],
    [
      193,
      205,
      186,
      199,
      238,
      93,
      105,
      65,
      201,
      197,
      63,
      129,
      67,
      15,
      12,
      4
    ],
    [
      66,
      16,
      134,
      3,
      216,
      26,
      235,
      167,
      1,
      237,
      29,
      123,
      226,
      182,
      252,
      249
    ],
    [
      91,
      161,
      192,
      178,
      247,
      39,
      153,
      154,
      134,
      184,
      177,
      40,
      39,
      255,
      31,
      73
    ],
    [
      134,
      89,
      61,
      218,
      10,
      44,
      225,
      253,
      75,
      217,
      163,
      111,
      117,
      100,
      19,
      227
    ],
    [
      204,
      133,
      0,
      148,
      102,
      132,
      244,
      9,
      12,
      71,
      211,
      208,
      14,
      63,
      232,
      128
    ],
    [
      149,
      159,
      83,
      136,
      160,
      70,
      237,
      197,
      16,
      193,
      64,
      148,
      30,
      231,
      183,
      206
    ]
  ],
  "second_frame": [
    [
      172,
      54,
      122,
      255,
      150,
      193,
      180,
      115,
      178,
      176,
      194,
      158,
      111,
      182,
      177,
      105
    ],
    [
      66,
      182,
      196,
      238,
      156,
      55,
      103,
      60,
      158,
      129,
      206,
      218,
      14,
      34,
      211,
      255
    ],
    [
      9,
      154,
      62,
      22,
      220,
      201,
      133,
      162,
      51,
      212,
      223,
      178,
      216,
      220,
      13,
      35
    ],
    [
      197,
      233,
      118,
      77,
      146,
      195,
      188,
      236,
      193,
      113,
      86,
      52,
      215,
      95,
      42,
      13
    ],
    [
      97,
      8,
      160,
      224,
      195,
      173,
      75,
      117,
      11,
      112,
      254,
      170,
      122,
      112,
      48,
      75
    ],
    [
      160,
      178,
      59,
      13,
      32,
      59,
      192,
      161,
      61,
      78,
      177,
      141,
      56,
      192,
      104,
      116
    ],
    [
      0,
      161,
      112,
      136,
      52,
      184,
      31,
      85,
      96,
      158,
      34,
      112,
      45,
      230,
      19,
      141
    ],
    [
      16,
      184,
      82,
      193,
      118,
      134,
      69,
      88,
      160,
      51,
      49,
      205,
      99,
      145,
      17,
      215
    ],
    [
      145,
      52,
      149,
      178,
      8,
      8,
      76,
      33,
      71,
      12,
      149,
      241,
      107,
      147,
      93,
      68
    ],
    [
      131,
      59,
      123,
      230,
      171,
      205,
      239,
      203,
      178,
      208,
      56,
      221,
      144,
      26,
      25,
      143
    ],
    [
      7,
      82,
      104,
      224,
      162,
      158,
      152,
      157,
      46,
      106,
      122,
      126,
      164,
      158,
      191,
      30
    ],
    [
      39,
      139,
      193,
      205,
      186,
      199,
      238,
      93,
      105,
      65,
      201,
      197,
      63,
      129,
      67,
      15
    ],
    [
      12,
      53,
      66,
      16,
      134,
      3,
      216,
      26,
      235,
      167,
      1,
      237,
      29,
      123,
      226,
      182
    ],
    [
      52,
      27,
      91,
      161,
      192,
      178,
      247,
      39,
      153,
      154,
      134,
      184,
      177,
      40,
      39,
      255
    ],
    [
      34,
      240,
      134,
      89,
      61,
      218,
      10,
      44,
      225,
      253,
      75,
      217,
      163,
      111,
      117,
      100
    ],
    [
      140,
      164,
      204,
      133,
      0,
      148,
      102,
      132,
      244,
      9,
      12,
      71,
      211,
      208,
      14,
      63
    ]
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://medien.halowerk.com/v1/oss-opencv-dense-frame-optical-flow/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →