공식 클라이언트로 몇 줄만에 번호판 인식을 연동하세요.
Authorization: Bearer <API_KEY> 헤더를 사용합니다.pip install requests
from plateocr import PlateOCR
client = PlateOCR("pk_live_xxx")
# 파일 인식
res = client.recognize("car.jpg")
for p in res["plates"]:
print(p["text"], p["confidence"])
# URL 인식
client.recognize(image_url="https://.../car.jpg")
# 일괄 인식 (최대 10장)
client.recognize_batch(image_paths=["a.jpg", "b.jpg"])
# 잔여 건수
print(client.usage())
// 의존성 없음 — Node 18+ (내장 fetch / FormData 사용)
const PlateOCR = require('./plateocr');
const client = new PlateOCR('pk_live_xxx');
(async () => {
const res = await client.recognize({ imagePath: 'car.jpg' });
console.log(res.plates);
// URL 인식
await client.recognize({ imageUrl: 'https://.../car.jpg' });
// 잔여 건수
console.log(await client.usage());
})();