Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Input image
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run stphtan94117/taiwan-licence-plate-recognition using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "stphtan94117/taiwan-licence-plate-recognition:38f8ac2275563bd275cf07a9e79c7e2f9b38d0850a4c10a4958efba8b2362127", { input: { image: "https://replicate.delivery/pbxt/J97IbTkG4RGY3rB1ZZAPkQFhQ4QHG2a4hT8kyYUxJuZXj1LO/9.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "stphtan94117/taiwan-licence-plate-recognition:38f8ac2275563bd275cf07a9e79c7e2f9b38d0850a4c10a4958efba8b2362127", input={ "image": "https://replicate.delivery/pbxt/J97IbTkG4RGY3rB1ZZAPkQFhQ4QHG2a4hT8kyYUxJuZXj1LO/9.jpg" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "38f8ac2275563bd275cf07a9e79c7e2f9b38d0850a4c10a4958efba8b2362127", "input": { "image": "https://replicate.delivery/pbxt/J97IbTkG4RGY3rB1ZZAPkQFhQ4QHG2a4hT8kyYUxJuZXj1LO/9.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
licence_plate
license_plate_number
{ "completed_at": "2023-07-10T02:36:44.903484Z", "created_at": "2023-07-10T02:36:44.269685Z", "data_removed": false, "error": null, "id": "iresewjbvs6i5pr5patbljkxnq", "input": { "image": "https://replicate.delivery/pbxt/J97IbTkG4RGY3rB1ZZAPkQFhQ4QHG2a4hT8kyYUxJuZXj1LO/9.jpg" }, "logs": null, "metrics": { "predict_time": 0.662778, "total_time": 0.633799 }, "output": [ { "licence_plate": "https://replicate.delivery/pbxt/XdrFvnXOojbrPxNF1zM2CAZopI6FBQrT7cje1RMTPaAeCSORA/tmpbmpmu6ji9_plate0.jpg", "license_plate_number": "7275QX" } ], "started_at": "2023-07-10T02:36:44.240706Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/iresewjbvs6i5pr5patbljkxnq", "cancel": "https://api.replicate.com/v1/predictions/iresewjbvs6i5pr5patbljkxnq/cancel" }, "version": "38f8ac2275563bd275cf07a9e79c7e2f9b38d0850a4c10a4958efba8b2362127" }
Choose a file from your machine
Hint: you can also drag files onto the input