{"id":18276272,"url":"https://github.com/0x30c4/fastocr","last_synced_at":"2026-02-17T20:35:16.209Z","repository":{"id":38993562,"uuid":"415067874","full_name":"0x30c4/FastOCR","owner":"0x30c4","description":"Simple Optical Character Recognition service.","archived":false,"fork":false,"pushed_at":"2023-03-06T16:50:55.000Z","size":5910,"stargazers_count":12,"open_issues_count":17,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T03:31:55.832Z","etag":null,"topics":["docker","flask","gunicorn","linux","ocr","ocr-recognition"],"latest_commit_sha":null,"homepage":"https://ocr.0x30c4.dev/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x30c4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-08T17:08:47.000Z","updated_at":"2025-02-03T13:46:50.000Z","dependencies_parsed_at":"2025-04-05T03:31:39.560Z","dependency_job_id":"7b4684e4-6ac7-420c-b7e9-78b1967d9b2c","html_url":"https://github.com/0x30c4/FastOCR","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/0x30c4/FastOCR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x30c4%2FFastOCR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x30c4%2FFastOCR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x30c4%2FFastOCR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x30c4%2FFastOCR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x30c4","download_url":"https://codeload.github.com/0x30c4/FastOCR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x30c4%2FFastOCR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29557395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T20:14:27.083Z","status":"ssl_error","status_checked_at":"2026-02-17T20:14:26.018Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","flask","gunicorn","linux","ocr","ocr-recognition"],"created_at":"2024-11-05T12:15:36.941Z","updated_at":"2026-02-17T20:35:11.186Z","avatar_url":"https://github.com/0x30c4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fast OCR is a free and opensource Optical Character Recognition Service.\n\n## What The the service does?\n\nThis application receive a http multipart request with a image file, extract text using OCR from Tesseract and returns the result.\nI know it's not an UNIQUE project but my main goal is to make a fast and less resource intensive OCR web service.\n\n# Live Demo.\n[https://ocr.0x30c4.dev](https://ocr.0x30c4.dev)\n\n## Built With.\n\n* [Docker](https://www.docker.com) - Platform and Software Deployment\n* [FastApi](https://fastapi.tiangolo.com/) - Backend Frame-work.\n* [Nginx](https://nginx.com/) - For Load Balancing.\n* [ReactJs](https://reactjs.org/) - Front-end Frame-work \n\n## Prerequisites.\n\nMake sure you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git), [nodejs](https://nodejs.org/en/download/), [make](https://tldp.org/HOWTO/Software-Building-HOWTO-3.html) and [Docker](https://www.docker.com/products/docker-desktop) installed.\n\n# Version.\n* [Production](https://github.com/0x30c4/FastOCR#deploy-docker-container-production-version)\n* [Development](https://github.com/0x30c4/FastOCR#deploy-docker-container-development-version)\n\n## Deploy Docker Container (Production Version.).\n### Clone the repo.\n```\n$ git clone https://github.com/0x30c4/FastOCR\n```\n\n### Create the ```data/media/uploads``` directory where all the images will be.\n```\n$ mkdir -p data/media/uploads \n```\n\n#### You can change the ```uploads``` directory location by changing it from the ```.env.prod```\n\n### Build the front-end with node. (Optional step)\n```\n$ cd front-end\n$ npm run build\n$ cd -\n```\n\n### Create a docker volume for the postgres database to be persistent.\n```\n$ docker volume create pgdata\n```\n\n#### If you want to take backup of the databse then you can backup the ```/var/lib/docker/volumes/pgdata``` directory.\n\n### Build the container.\n```\n$ make build\n```\n\n### Now deploy the production version of the image using make.\n```\n$ make up # to run in the foreground.\nor \n$ make up op=-d # to run the container in background.\n```\n\n### Check logs.\n```\n$ docker logs nginx_proxy # this is the nginx container.\n$ docker logs ocr_api_srv # this is the FastApi app.\n$ docker logs postgres # this is the postgres database.\n```\nYou can add ```docker logs -f/--follow \u003ccontainer_name\u003e``` to follow log output\n\n### Stop the container.\n```\n$ make down\n```\n\n\n## Deploy Docker Container (Development Version.).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x30c4%2Ffastocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x30c4%2Ffastocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x30c4%2Ffastocr/lists"}