Sign inSign up

blockaero/ocr_tesseract

By blockaero

Updated over 6 years ago

Image
0

2.3K

blockaero/ocr_tesseract repository overview

Overview

This supports single page PDF or single page image files(png).

Making changes and redeploying service

./deploy.sh DEV ocr-tesseract
curl -v  http://localhost/async-function/ocr-tesseract \
       -H "id:f985a551-d590-4da3-8e82-6d4b9a71a83b" \
       -H "page:5" \
       -H "file_path: BLOCKAERO/sample/f985a551-d590-4da3-8e82-6d4b9a71a83b/f985a551-d590-4da3-8e82-6d4b9a71a83b_page005.pdf"  \
       -H "X-Callback-Url: http://webhook/"

Expected Response

ocr_preprocessing

{
  "action": "ocr_preprocessing",
  "endpoint": "ocr-tesseract",
  "id": "c7fa1e1c-4b5f-11e9-91ed-02420a000019",
  "page": 1,
  "input": "BLOCKAERO/sample/c7fa1e1c-4b5f-11e9-91ed-02420a000019.pdf",
  "total_time_taken": 2.5422966480255127,
  "status": 200,
  "next_action_response": 202,
  "next_action": "ocr-tesseract",
  "result": {
    "thumbnail": "BLOCKAERO/sample/c7fa1e1c-4b5f-11e9-91ed-02420a000019_tn.png",
    "highdpi": "BLOCKAERO/sample/c7fa1e1c-4b5f-11e9-91ed-02420a000019.png",
    "highdpi_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
  }
}

ocr


{
  "action": "ocr",
  "endpoint": "ocr-tesseract",
  "id": "c7fa1e1c-4b5f-11e9-91ed-02420a000019",
  "page": 1,
  "input": "BLOCKAERO/sample/c7fa1e1c-4b5f-11e9-91ed-02420a000019.pdf",
  "result": {
    "text": "r\n\n \n\n* 1. Approving National Aviation] 2                                                                 3. Form Tracking\n\nAuthority/Country:               AUTHORIZED RELEASE CERTIFICATE                    Number\n\n \n\n \n\n \n\n \n\n \n\nFAA/UNITED STATES              FAA Form 8130-3 AIRWORTHINESS APPROVAL TAG             1387105669\n4. Organization Name and Address:                                                               5.Wark Order/Contract/\nIAE INTERNATIONAL AERO ENGINES AG        PRATT & WHITNEY                          GEORGIA DISTR. CENTER                      Invoice Number\n628 HEBRON AVE., SUITE 400                3781 SOUTHSIDE INDUSTRIAL CT SE           FAA APPROVAL HOLDER                      87105669\nGLASTONBURY, CT 06033 USA             ATLANTA, GA 30354-3218 US               PRODUCTION CERTIFICATE NUMBER 114NE\nGjitem| 7 Description                             8 Part Number                                 OG Eligibility *       10. Quantity      it. Serial/Batch Number [12 Status/Vork\nBLADE-TURBINE                2A3838                                          CONTD | PKLBL80276\nPKLBL80382\nPKLBL80394\nPKLBL80592\nPKLBLW2532\nPKLBLW2548\nPKLBLW2656\nPKLBLW2667\nPKLBLW2730\nPKLBLW2788\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n13. Remarks: Page 6 of 7\nEXPORT                  DIRECT SHIPMENT AUTHORIZATION\n\n \n\n14. Certifies the items identified above were manufactured in conformity ta:\n{x   Approved design data and are in @ condition for safe operation\nC1 Non-approved design data specified in Black 13.\n\nFA\n15. Alithorized. Sienpture           16. Approval Authorization No:\noe Pill           ODA400098NE\n\n17. NamefTyped or Printed):                            18. Dateim/d/y):\n\nDAVID A HENRY                         IAPR/01/2013\n\nUser/Installer Responsibi Hes:\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nIr is important to understand that the existence of thig Decument alone does not automatically constitute authority to install the partfcomponent/assembly.\n\nWhere the user/instailer performs work in accordance with the national regulations of an airworthiness authority different than the airwerthiness authority of the country specified in Block\n1, fC is essential that the user/installer ensures that his/her airworthiness authority accepts parts/components/assemblies from the airworthiness authority of the country specified in Block\nt\n\nStatements in Block 14 and 19 do net constitute installation certification. In all cases, aircraft maintenance record must contain ar installation certification issued in accordance with the\nnational ragulations by the user/installer before the aircraft may be flown.\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nFAA Form 8130-3(6-01)          *Installer must cross check eligibility with applicable technical data    NSN: 0052-00-01 2-9005\n1. Approving National Aviation: 2.                                                                 3. Form Tracking\nAuthority/Country:                        AUTHORIZED RELEASE CERTIFICATE                 Number\nFAA/UNITED STATES              FAA Form 8130-3 AIRWORTHINESS APPROVAL TAG             1387105669\n4. Organization Name and Address:                                                               \u00a7.Work Order/Contract/\nIAE INTERNATIONAL AERO ENGINES AG        PRATT & WHITNEY                         GEORGIA DISTR. CENTER                     invoice Number\n628 HEBRON AVE., SUITE 400               3781 SOUTHSIDE INDUSTRIAL CT SE           FAA APPROVAL HOLDER                     87105669\nGLASTONBURY, CT 06033 USA             ATLANTA, GA 36354-3218 US               PRODUCTION CERTIFICATE NUMBER 114NE\nS.jtem|_ 7 .Oeseription                           $.Part Number                                 Eligibility *       10 Quantity      Li Serial/Batch Number 12. StatusWork\nBLADE-TURBINE               2A3838                                      CONTD     PKLBLW2796\nPKLBLW2878\nPKLBLW2881\nPKLBLW2969\nPKLBLW2977\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n13. Ramarks: Page 7 of 7\nEXPORT                  DIRECT SHIPMENT AUTHORIZATION\n\n \n\n14. Cartifies the items identified above were manufactured in conformity to:\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nix   Approved design data and are in a candition tor safe operation\nL1 Non-approved design data specified in Block 13.\nfh\n15.   ee rl                         18. Approval Authorization Ne:\n:          A\nODA4O0O0098NE\n\n17. Name{Typed or Printed):                             18. Datetm/dfy):\nDAVID A HENRY                       AAPR/O1/2013\n\n \n\n \n\n \n\nUser/installer Responsibilities:\n\nIt is important to understand that the existence of this Cacument alone does not automatically constitute authority to install the part/component/assembly,\n\nWhere the usercinstaller performs work in accordance with the national regulations of an airworthiness authority different than the airworthiness authority of the country specified in Block\n\u00a5, it is essentiat that the userfnstaller ensures that his/her airwerthiness authority accepts parts/components/assemblies from the airworthiness authority of the country specified in Block\n1\n\n \n\nStatements in Block 14 and 18 do not constitute installation certification. tn all cases, aircraft maintenance record must contain an installation certificatian issued In accordance with the\nnational regulations by the user/installer before the aircraft may be flown.\n\nFAA Form 8130-3/6-011          *Installer must cross check eligibility with applicable technical data    NSN: 0652-00-07 2-9005\n\n \n\n \n\n \n\f"
  },
  "status": 200,
  "total_time_taken": "6.431158065795898",
  "next_action": "classify-fasttext",
  "next_action_response": 202
}

Tag summary

Content type

Image

Digest

Size

935.1 MB

Last updated

over 6 years ago

docker pull blockaero/ocr_tesseract:59a4a60f9b968733ea2b08fcca281500565e6b09