SDK / API連携
既存のAI-OCRシステムへモジュールとして組み込むための開発者向け設定です。表示中のキー・エンドポイントはデモ用のダミーです。
SDK対応プラットフォーム
iOS
iOS 14+ / Swift Package
対応済み
Android
Android 8.0+ / AAR
対応済み
Web
WebAssembly / ES Module
対応済み
画像補正API 呼び出しサンプル
curl
curl -X POST https://api.imagecorrect.example/v2/correct \ -H "Authorization: Bearer <API_KEY>" \ -H "Content-Type: multipart/form-data" \ -F "file=@invoice_sample.jpg" \ -F "modules=perspective,exposure,denoise" \ -F "output=base64" \ -F "return_quad=true"
リクエスト JSON
POST /v2/correct
{
"modules": ["perspective", "exposure", "denoise"],
"options": {
"output": "base64",
"return_quad": true,
"dpi": 300,
"denoise_strength": 0.4,
"auto_deskew": true
},
"meta": {
"document_type": "invoice",
"device": "iPhone 15",
"client_request_id": "req_8f2c41a0"
}
}レスポンス JSON
200 OK
{
"status": "succeeded",
"request_id": "req_8f2c41a0",
"engine": "on-device (SDK v2.4.1)",
"quad": {
"top_left": { "x": 128, "y": 96 },
"top_right": { "x": 1512, "y": 174 },
"bottom_right": { "x": 1548, "y": 2216 },
"bottom_left": { "x": 96, "y": 2128 }
},
"steps": [
{ "name": "perspective", "status": "done", "elapsed_ms": 312 },
{ "name": "exposure", "status": "done", "elapsed_ms": 194 },
{ "name": "denoise", "status": "done", "elapsed_ms": 268 }
],
"metrics": {
"elapsed_ms": 800,
"output_size": { "width": 1654, "height": 2339 },
"sharpness_gain": 2.14,
"estimated_ocr_accuracy": 0.98
},
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ..."
}APIキー
デモ環境キー
ic_demo_••••••••••••••••3f21
新しいキーを発行すると、この場所に一度だけ全文が表示されます。
SDK v2.4.1
iOS 14+ / Android 8+
Webhook・レート制限設定(後続の指示で実装)
placeholder: /sdk/webhooks