Skip to content

convert-pdf error #130

Description

@ricardoborges

Hey guys,

I'm trying to use the "convert-pdf" preprocessor without success:

curl -X POST -H "Content-Type: application/json" -d '{"img_url":"https://jeroen.github.io/images/ocrscan.pdf","engine":"tesseract", "preprocessors":["convert-pdf"]}' http://myhost:9292/ocr

any clue?

thanks a lot!

the logs are:

rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:33:08 ===
rabbitmq_1 | accepting AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
openocr_1 | 04:33:08.579373 OCR_CLIENT: callbackQueue name: amq.gen-Aj41Hj-a4TCFpUVKkPpSrA
openocr_1 | 04:33:08.580361 OCR_CLIENT: looping over deliveries..
openocr_1 | 04:33:09.556468 OCR_CLIENT: ocrRequest before: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: [convert-pdf]
openocr_1 | 04:33:09.556504 OCR_CLIENT: publishing with routing key "convert-pdf"
openocr_1 | 04:33:09.556516 OCR_CLIENT: ocrRequest after: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: []
openocr_1 | 04:35:09.563580 ERROR: Timeout waiting for RPC response -- open-ocr.HandleOcrRequest() at ocr_http_handler.go:80
openocr_1 | 04:35:09.563630 ERROR: Unable to perform OCR decode. Error: Timeout waiting for RPC response -- open-ocr.(*OcrHttpHandler).ServeHTTP() at ocr_http_handler.go:40
rabbitmq_1 |
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:35:09 ===
rabbitmq_1 | closing AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
rabbitmq_1 |
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:33:08 ===
rabbitmq_1 | accepting AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
openocr_1 | 04:33:08.579373 OCR_CLIENT: callbackQueue name: amq.gen-Aj41Hj-a4TCFpUVKkPpSrA
openocr_1 | 04:33:08.580361 OCR_CLIENT: looping over deliveries..
openocr_1 | 04:33:09.556468 OCR_CLIENT: ocrRequest before: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: [convert-pdf]
openocr_1 | 04:33:09.556504 OCR_CLIENT: publishing with routing key "convert-pdf"
openocr_1 | 04:33:09.556516 OCR_CLIENT: ocrRequest after: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: []
openocr_1 | 04:35:09.563580 ERROR: Timeout waiting for RPC response -- open-ocr.HandleOcrRequest() at ocr_http_handler.go:80
openocr_1 | 04:35:09.563630 ERROR: Unable to perform OCR decode. Error: Timeout waiting for RPC response -- open-ocr.(*OcrHttpHandler).ServeHTTP() at ocr_http_handler.go:40
rabbitmq_1 |
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:35:09 ===
rabbitmq_1 | closing AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:33:08 ===
rabbitmq_1 | accepting AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
openocr_1 | 04:33:08.579373 OCR_CLIENT: callbackQueue name: amq.gen-Aj41Hj-a4TCFpUVKkPpSrA
openocr_1 | 04:33:08.580361 OCR_CLIENT: looping over deliveries..
openocr_1 | 04:33:09.556468 OCR_CLIENT: ocrRequest before: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: [convert-pdf]
openocr_1 | 04:33:09.556504 OCR_CLIENT: publishing with routing key "convert-pdf"
openocr_1 | 04:33:09.556516 OCR_CLIENT: ocrRequest after: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: []
openocr_1 | 04:35:09.563580 ERROR: Timeout waiting for RPC response -- open-ocr.HandleOcrRequest() at ocr_http_handler.go:80
openocr_1 | 04:35:09.563630 ERROR: Unable to perform OCR decode. Error: Timeout waiting for RPC response -- open-ocr.(*OcrHttpHandler).ServeHTTP() at ocr_http_handler.go:40
rabbitmq_1 |
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:35:09 ===
rabbitmq_1 | closing AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
rabbitmq_1 |
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:33:08 ===
rabbitmq_1 | accepting AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)
openocr_1 | 04:33:08.579373 OCR_CLIENT: callbackQueue name: amq.gen-Aj41Hj-a4TCFpUVKkPpSrA
openocr_1 | 04:33:08.580361 OCR_CLIENT: looping over deliveries..
openocr_1 | 04:33:09.556468 OCR_CLIENT: ocrRequest before: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: [convert-pdf]
openocr_1 | 04:33:09.556504 OCR_CLIENT: publishing with routing key "convert-pdf"
openocr_1 | 04:33:09.556516 OCR_CLIENT: ocrRequest after: ImgUrl: , EngineType: ENGINE_TESSERACT, Preprocessors: []
openocr_1 | 04:35:09.563580 ERROR: Timeout waiting for RPC response -- open-ocr.HandleOcrRequest() at ocr_http_handler.go:80
openocr_1 | 04:35:09.563630 ERROR: Unable to perform OCR decode. Error: Timeout waiting for RPC response -- open-ocr.(*OcrHttpHandler).ServeHTTP() at ocr_http_handler.go:40
rabbitmq_1 |
rabbitmq_1 | =INFO REPORT==== 10-Mar-2021::04:35:09 ===
rabbitmq_1 | closing AMQP connection <0.3778.0> (172.22.0.5:39744 -> 172.22.0.2:5672)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions