{"id":18448708,"url":"https://github.com/mindee/demo-python-sdk","last_synced_at":"2025-07-03T22:34:32.446Z","repository":{"id":44915059,"uuid":"444145444","full_name":"mindee/demo-Python-SDK","owner":"mindee","description":"Mindee Python SDK demo using Jupyter notebooks","archived":false,"fork":false,"pushed_at":"2022-01-18T21:44:28.000Z","size":1031,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T16:05:38.626Z","etag":null,"topics":["demo","jupyter-notebook","ocr","python","python-sdk","sdk"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mindee.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}},"created_at":"2022-01-03T17:29:17.000Z","updated_at":"2025-05-21T08:18:46.000Z","dependencies_parsed_at":"2022-09-04T01:03:31.747Z","dependency_job_id":null,"html_url":"https://github.com/mindee/demo-Python-SDK","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mindee/demo-Python-SDK","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindee%2Fdemo-Python-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindee%2Fdemo-Python-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindee%2Fdemo-Python-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindee%2Fdemo-Python-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindee","download_url":"https://codeload.github.com/mindee/demo-Python-SDK/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindee%2Fdemo-Python-SDK/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263415758,"owners_count":23463104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["demo","jupyter-notebook","ocr","python","python-sdk","sdk"],"created_at":"2024-11-06T07:16:49.647Z","updated_at":"2025-07-03T22:34:32.413Z","avatar_url":"https://github.com/mindee.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tutorials for Mindee Python SDK\n\nThese samples all use Juypter Notebooks.\n\nPython requirements:\n\n\n```\npip install -r requirements.txt\n```\n\n\n* Mindee is used for the OCR data extraction\n* JSON to read the outputs\n* cv2, pyplot numpy are all used to create the charts, and draw shapes on the charts\n* Math is used to round the pixel math to an integer.\n* Pretty prints the JSON nicely.\n\nTo start a Jupyter Notebook:\n\n1. [install Jupyter](https://jupyter.org/install)\n2. Start the Jupyter instance ```jupyter notebook```\n3. A tab will open in the browser and you can naviagte to the ipynb Jupyter file you wish to examine.\n\nTo use these dociuments, you'll need a [Mindee API key](platform.mindee.com).  Each APi endpoint uses a different key - so you must generate the key for the endpoint you are working with.\n\n\nThere are 4 docs:\n\n1. invoice\n2. receipt\n3. passport\n4. license plates\n\nAdditionally, there are sample images for all of the endpoints. To test with a new document, sinply add to the directory, and change the path for the 'image' variable.\n\n## Drawing the polygon boxes\n\nIn the invoice and license plate examples - not only are the various values extracted from the document, but a box is drawn around the location of several of the attributes. This is done by retrieving the polygon data from the Mindee response, converting to a pixel corrdiante, and the using openCV to draw a rectangle on the image.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindee%2Fdemo-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindee%2Fdemo-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindee%2Fdemo-python-sdk/lists"}