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

# Get All Camera Frames

> Capture frames from all available cameras. Returns a dictionary with camera IDs as keys and base64 encoded JPG images as values. If a camera is not available or fails to capture, its value will be None.



## OpenAPI

````yaml get /frames
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /frames:
    get:
      tags:
        - camera
      summary: Get All Camera Frames
      description: >-
        Capture frames from all available cameras. Returns a dictionary with
        camera IDs as keys and base64 encoded JPG images as values. If a camera
        is not available or fails to capture, its value will be None.
      operationId: get_all_camera_frames_frames_get
      parameters:
        - in: query
          name: resize_x
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Resize X
        - in: query
          name: resize_y
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Resize Y
      responses:
        '200':
          content:
            application/json:
              example:
                '0': base64_encoded_image_string
                realsense: base64_encoded_image_string
              schema:
                additionalProperties:
                  anyOf:
                    - type: string
                    - type: 'null'
                title: Response Get All Camera Frames Frames Get
                type: object
          description: Successfully captured frames from available cameras
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '500':
          description: Server error while capturing frames
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````