OCR Server Kit

Running OCR with large models like EasyOCR, PaddleOCR, or SuryaOCR can be slow when executed directly via the command line because the model has to be loaded every time you run it. Using LocalServer helps resolve this by loading the model just once, which makes the recognition process significantly faster.

Scripts

EasyOCRSuryaOCR

HTTP Request

Method: POST

URL:

http://127.0.0.1:5353

Content Type: application/json

Headers: {}

Body:

{"image":"$IMAGE_BASE64", "langs": ["ja"]}

Response Type: JSON

Response Query: fullText


HTTP Response

  • draw_bounding_box: Boolean

  • fullText: String

  • lines: Array[]

{
    "draw_bounding_box": true,
    "fullText": "Hello World",
    "lines": [
        {"text": "Hello", "w": 100, "h": 50, "x": 10, "y": 10},
        {"text": "World", "w": 125, "h": 50, "x": 55, "y": 10}
    ]
        
}

Last updated