{"id":21381164,"url":"https://github.com/zecat/cardscan","last_synced_at":"2025-03-16T10:43:38.889Z","repository":{"id":193248877,"uuid":"688409447","full_name":"Zecat/cardscan","owner":"Zecat","description":"Extract black bordered frame in an image, adjust perspective, crop and rotate.","archived":false,"fork":false,"pushed_at":"2023-09-20T09:01:29.000Z","size":323,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T22:45:15.788Z","etag":null,"topics":["card","image-processing","opencv-python","perspective-transformation","scanner","sheet"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zecat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-07T09:38:04.000Z","updated_at":"2024-02-06T07:45:05.000Z","dependencies_parsed_at":"2023-12-28T17:56:27.284Z","dependency_job_id":"b04eba85-caf1-4392-91c1-717301eb450b","html_url":"https://github.com/Zecat/cardscan","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"4cdde735c9464eb78bca6c562b242da248a75d4f"},"previous_names":["zecat/cardscan"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zecat%2Fcardscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zecat%2Fcardscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zecat%2Fcardscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zecat%2Fcardscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zecat","download_url":"https://codeload.github.com/Zecat/cardscan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243857996,"owners_count":20359259,"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":["card","image-processing","opencv-python","perspective-transformation","scanner","sheet"],"created_at":"2024-11-22T10:44:42.054Z","updated_at":"2025-03-16T10:43:38.838Z","avatar_url":"https://github.com/Zecat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cardscan\n\nOpenCV python pipeline to extract black bordered frame in an image. Post process the image, find and filter contours, fix the perspective, crop and rotate. No machine learning involved.\n\n\u003e Experimental stage project\n\n![cardscan output example](examples/cardscan_example.png)\n\n## Install\n\n``` python\npip install cardscan\n```\n\n## Usage\n\n\n``` python\nimport cv2\nfrom cardscan import scan\n\nimg = cv2.imread('path_to_your_image.jpg') \nimg_result_array = scan(img)\n```\n\nMore examples [here](examples/)\n\n\n## Dev\n\ninstall poetry\n\n``` sh\npip install poetry\n\n```\n\ninstall dependencies\n\n``` sh\n\n# cd at the project root\npoetry install\n```\n\nrun one of the pipeline visualization app\n\n``` sh\npoetry run python -m examples.cam_draw_pip\npoetry run python -m examples.cam_use_pipeline\npoetry run python -m examples.cam_visual_pipeline\npoetry run python -m examples.cam_visual_contours\npoetry run python -m examples.cam_simple\npoetry run python -m examples.from_file\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzecat%2Fcardscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzecat%2Fcardscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzecat%2Fcardscan/lists"}