> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acusight.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get bounding box statistics

> Returns per-class bounding box size and aspect ratio statistics for drift detection.



## OpenAPI

````yaml /api-spec.json get /pipeline-data/detections/bbox-stats
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /pipeline-data/detections/bbox-stats:
    get:
      tags:
        - Pipeline data
      summary: Get bounding box statistics
      description: >-
        Returns per-class bounding box size and aspect ratio statistics for
        drift detection.
      parameters:
        - description: Device ID to filter detections
          in: query
          name: device_id
          required: true
          schema:
            type: string
        - description: RFC3339 start timestamp (inclusive)
          in: query
          name: start
          required: true
          schema:
            type: string
        - description: RFC3339 end timestamp (exclusive)
          in: query
          name: end
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/types.BBoxStatsResponse'
        '400':
          description: Validation error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/types.APIResponse'
        '500':
          description: Internal error
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/types.APIResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    types.BBoxStatsResponse:
      properties:
        class_stats:
          items:
            $ref: '#/components/schemas/types.BBoxClassStats'
          type: array
        device_id:
          type: string
        end_time:
          type: string
        start_time:
          type: string
        total_detections:
          type: integer
      type: object
    types.APIResponse:
      properties:
        data: {}
        error:
          $ref: '#/components/schemas/types.APIError'
        meta:
          $ref: '#/components/schemas/types.APIMeta'
        success:
          type: boolean
      type: object
    types.BBoxClassStats:
      properties:
        avg_aspect_ratio:
          description: bbox_width / bbox_height
          type: number
        avg_rel_height:
          description: Normalized height (bbox_height / frame_height)
          type: number
        avg_rel_width:
          description: Normalized width (bbox_width / frame_width)
          type: number
        detection_count:
          type: integer
        label:
          type: string
        stddev_aspect_ratio:
          type: number
        stddev_rel_height:
          type: number
        stddev_rel_width:
          type: number
      type: object
    types.APIError:
      properties:
        code:
          type: string
        details:
          type: string
        message:
          type: string
      type: object
    types.APIMeta:
      properties:
        count:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
        total:
          type: integer
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````