
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@smart-cloud/image-review
Advanced tools
Typescript Image Review Client by Smart Cloud Solutions Inc.
TypeScript client for the Image Review App by Smart Cloud Solutions Inc..
The Image Review client provides a seamless way to interact with the Image Review App, allowing tolling operators or image review companies to process and review images efficiently. This client supports features like license plate, make and model, and dangerous goods recognition.
Before installing, ensure you have the following prerequisites:
Node.js (>=12.0.0) npm (>=6.0.0)
npm install --save @smart-cloud/image-review
For basic usage, see the example below. For detailed instructions and more examples, please visit the Getting Started guide.
import {
ImageReviewServiceClient,
Image,
SearchRequest,
SearchResponse,
} from "@smart-cloud/image-review";
import { credentials } from "@grpc/grpc-js";
import { readFileSync } = from "fs";
/*
Create a client instance.
The first parameter is the address of the Docker-based Image Review application or a load-balancer in front of it in a clustered environment, in the format HOST:PORT. Here, HOST is the hostname or IP address and PORT is the exposed TCP port of the application, e.g., 127.0.0.1:8080.
If the application is listening over TLS, use `credentials.createSsl()` instead of `credentials.createInsecure()`.
*/
const client = new ImageReviewServiceClient(
"127.0.0.1:8080",
credentials.createInsecure()
);
// Create a search request
const searchRequest = new SearchRequest();
// Enable make and model recognition
searchRequest.setMakeAndModelRecognition(true);
// Set image name and bytes
const fileName = "path/to/image/file";
const imageData = readFileSync(fileName);
searchRequest.setImage(new Image().setData(imageData).setName(fileName));
// Send the request to the application
const call = client.search(searchRequest);
// Handle the response
call.on("data", (response: SearchResponse) => {
switch (response.getStatus()) {
case "QUEUEING":
console.log("Request queued.");
break;
case "PROCESSING":
console.log("Request processing.");
break;
case "RESULT":
console.log('Search Result:', response.getResultList());
break;
}
});
call.on("end", () => {
console.log("Search ended.");
});
call.on("error", (err) => {
console.error("Search error:", err);
});
More examples can be found on the Getting Started page.
FAQs
Typescript Image Review Client by Smart Cloud Solutions Inc.
We found that @smart-cloud/image-review demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.