Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@adaptive-recognition/carmen-cloud-client
Advanced tools
Node.js client for Carmen Cloud by Adaptive Recognition. Efficiently read license plates, recognize vehicle details, and process container, railway wagon, and US DOT codes.
JavaScript/TypeScript client for Carmen Cloud by Adaptive Recognition. This unified library provides you with access to the Vehicle API, Transportation & Cargo API and the Storage & Hook API.
npm install --save @adaptive-recognition/carmen-cloud-client
The three APIs available have separate client classes. For basic usage, see the examples below.
import { VehicleAPIClient, Locations } from "@adaptive-recognition/carmen-cloud-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().catch(console.error);
import { TransportAPIClient, CodeType } from "@adaptive-recognition/carmen-cloud-client";
const client = new TransportAPIClient({
apiKey: "<YOUR_API_KEY>",
type: CodeType.ISO,
cloudServiceRegion: "EU"
});
async function recognize() {
const response = await client.send("./container.jpg");
console.log(response);
}
recognize().catch(console.error);
import { StorageAndHookAPIClient } from ".";
const client = new StorageAndHookAPIClient({
apiKey: '<YOUR_API_KEY>',
cloudServiceRegion: 'EU'
});
// List Events
const events = await client.getEvents('vehicle');
console.log('events:', events);
// Get Storage Status
const status = await client.getStorageStatus();
console.log('status:', status);
// Update Storage Status
const updatedStatus = await client.updateStorageStatus(
{ transport: true }
);
console.log('updatedStatus:', updatedStatus);
// Create Hook
const createdHook = await client.createHook({
hookUrl: 'https://your-domain.com/your-hook-path',
apis: ['vehicle', 'transport']
});
console.log('createdHook:', createdHook);
// List Hooks
const hooks = await client.getHooks();
console.log('hooks:', hooks);
// Get Hook
const hook = await client.getHook('https://your-domain.com/your-hook-path');
console.log('hook:', hook);
// Update Hook
const updatedHook = await client.updateHook(
'https://your-domain.com/your-hook-path',
{ vehicle: true, transport: true }
);
console.log('updatedHook:', updatedHook);
// Delete Hook
await client.deleteHook('https://your-domain.com/your-hook-path');
For more information about developing and contributing to this project, see DEVELOPMENT.md.
FAQs
Node.js client for Carmen Cloud by Adaptive Recognition. Efficiently read license plates, recognize vehicle details, and process container, railway wagon, and US DOT codes.
We found that @adaptive-recognition/carmen-cloud-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.