Catalog/eng-field-of-view

Engineering

Camera field of view API

Computes horizontal/vertical/diagonal angular field of view from sensor dimensions and focal length via FOV = 2·atan(sensor/2f), plus linear scene coverage at a given distance. Answers 'What angle of view does this lens give?', 'How wide a scene fits at 10 m?'.

Price$0.04per request
MethodPOST
Route/v1/engineering/field-of-view
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
opticsphotographyfield-of-viewangle-of-viewsensorfocal-lengthcameraframing
API URLhttps://x402.hexl.dev/v1/engineering/field-of-view
Integration docs
Example request
{
  "sensorWidthMm": 36,
  "sensorHeightMm": 24,
  "focalLengthMm": 50,
  "distanceM": 10
}
Example response
{
  "focalLengthMm": 50,
  "horizontalFovDeg": 39.5978,
  "verticalFovDeg": 26.9915,
  "diagonalFovDeg": 46.793,
  "horizontalCoverageM": 7.2,
  "verticalCoverageM": 4.8,
  "interpretation": "Horizontal angle of view 39.6° at 50 mm."
}
Input schema
{
  "type": "object",
  "required": [
    "sensorWidthMm",
    "focalLengthMm"
  ],
  "properties": {
    "sensorWidthMm": {
      "type": "number",
      "description": "Sensor width (mm)",
      "examples": [
        36
      ]
    },
    "sensorHeightMm": {
      "type": "number",
      "description": "Sensor height (mm)",
      "examples": [
        24
      ]
    },
    "focalLengthMm": {
      "type": "number",
      "description": "Focal length (mm)",
      "examples": [
        50
      ]
    },
    "distanceM": {
      "type": "number",
      "description": "Subject distance for linear coverage (m)",
      "examples": [
        10
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}