Class VisionClient

A gRPC-web client for a Vision service.

Implements

  • Vision

Constructors

Properties

callOptions: CallOptions = ...
client: PromiseClient<{
    methods: {
        captureAllFromCamera: {
            I: typeof CaptureAllFromCameraRequest;
            O: typeof CaptureAllFromCameraResponse;
            kind: Unary;
            name: "CaptureAllFromCamera";
        };
        doCommand: {
            I: typeof DoCommandRequest;
            O: typeof DoCommandResponse;
            kind: Unary;
            name: "DoCommand";
        };
        getClassifications: {
            I: typeof GetClassificationsRequest;
            O: typeof GetClassificationsResponse;
            kind: Unary;
            name: "GetClassifications";
        };
        getClassificationsFromCamera: {
            I: typeof GetClassificationsFromCameraRequest;
            O: typeof GetClassificationsFromCameraResponse;
            kind: Unary;
            name: "GetClassificationsFromCamera";
        };
        getDetections: {
            I: typeof GetDetectionsRequest;
            O: typeof GetDetectionsResponse;
            kind: Unary;
            name: "GetDetections";
        };
        getDetectionsFromCamera: {
            I: typeof GetDetectionsFromCameraRequest;
            O: typeof GetDetectionsFromCameraResponse;
            kind: Unary;
            name: "GetDetectionsFromCamera";
        };
        getObjectPointClouds: {
            I: typeof GetObjectPointCloudsRequest;
            O: typeof GetObjectPointCloudsResponse;
            kind: Unary;
            name: "GetObjectPointClouds";
        };
        getProperties: {
            I: typeof visionApi.GetPropertiesRequest;
            O: typeof visionApi.GetPropertiesResponse;
            kind: Unary;
            name: "GetProperties";
        };
    };
    typeName: "viam.service.vision.v1.VisionService";
}>

Type declaration

name: string
options: Options

Methods

  • Parameters

    • command: Struct
    • callOptions: CallOptions = ...

    Returns Promise<JsonValue>

  • Parameters

    • image: Uint8Array
    • width: number
    • height: number
    • mimeType: MimeType
    • count: number
    • extra: {} = {}
      • callOptions: CallOptions = ...

      Returns Promise<visionApi.Classification[]>

    • Parameters

      • cameraName: string
      • count: number
      • extra: {} = {}
        • callOptions: CallOptions = ...

        Returns Promise<visionApi.Classification[]>

      • Parameters

        • image: Uint8Array
        • width: number
        • height: number
        • mimeType: MimeType
        • extra: {} = {}
          • callOptions: CallOptions = ...

          Returns Promise<visionApi.Detection[]>

        • Parameters

          • cameraName: string
          • extra: {} = {}
            • callOptions: CallOptions = ...

            Returns Promise<visionApi.Detection[]>

          • Parameters

            • cameraName: string
            • extra: {} = {}
              • callOptions: CallOptions = ...

              Returns Promise<commonApi.PointCloudObject[]>

            • Parameters

              • extra: {} = {}
                • callOptions: CallOptions = ...

                Returns Promise<{
                    classificationsSupported: boolean;
                    detectionsSupported: boolean;
                    objectPointCloudsSupported: boolean;
                }>