1.4.3 • Published 1 year ago

@adaptive-recognition/vehicle-api-client v1.4.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Adaptive Recognition Cloud - Vehicle API Client

A JavaScript/TypeScript client for the AR Cloud Vehicle API.

How to Install

npm install --save @adaptive-recognition/vehicle-api-client

Usage

import { VehicleAPIClient, Locations } from "@adaptive-recognition/vehicle-api-client";

const client = new VehicleAPIClient({
    apiKey: "<YOUR_API_KEY>",
    services: { anpr: true, mmr: true },
    inputImageLocation: Locations.Europe.Hungary,
    cloudServiceRegion: "EU"
});

async function recognizeVehicle() {
    const response = await client.send("./car.jpg");
    console.log(response);
}

recognizeVehicle()
    .then()
    .catch(err => console.error(err));

Development

See DEVELOPMENT.md.