{"id":21250905,"url":"https://github.com/natlee/batch-crop-images","last_synced_at":"2025-07-11T01:31:40.282Z","repository":{"id":146802854,"uuid":"229879620","full_name":"NatLee/Batch-crop-images","owner":"NatLee","description":"A tool for cropping similar images in a batch with an interface.","archived":false,"fork":false,"pushed_at":"2023-09-14T02:57:04.000Z","size":4230,"stargazers_count":75,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-20T04:33:02.230Z","etag":null,"topics":["crop-image","opencv-python","python","python3","tool"],"latest_commit_sha":null,"homepage":"","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/NatLee.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}},"created_at":"2019-12-24T05:55:06.000Z","updated_at":"2024-10-16T16:17:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"204e397d-aa11-4989-b554-0448f35a5e1e","html_url":"https://github.com/NatLee/Batch-crop-images","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FBatch-crop-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FBatch-crop-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FBatch-crop-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FBatch-crop-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLee","download_url":"https://codeload.github.com/NatLee/Batch-crop-images/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225669684,"owners_count":17505363,"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":["crop-image","opencv-python","python","python3","tool"],"created_at":"2024-11-21T03:39:32.430Z","updated_at":"2024-11-21T03:39:32.900Z","avatar_url":"https://github.com/NatLee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Batch Image Crop Tool\n\nA tool for cropping images in a batch with an interface.\n\n## Requirement\n\n```bash\npip install -r requirements.txt\n```\n\n- numpy\n- opencv-python\n\n## Usage\n\n```bash\npython main.py --input_path \u003cYOUR_INPUT_DIR\u003e --output_path \u003cYOUR_OUTPUT_DIR\u003e\n```\n\nAnd, it'll preview first one for cropping.\n\n## Example\n\n* Test images which need to be cropped\n\n- 1280 x 720\n![Demo input 1](./img/input/1.jpg)\n\n- 1280 x 720\n![Demo input 2](./img/input/2.jpg)\n\n- 1280 x 852\n![Demo input 3](./img/input/3.jpg)\n\n* Processing with mouse\n\n![Demo processing](./img/processing.png)\n\n* Cropped result\n\n![Demo result 1](./img/result/1.jpg)\n\n![Demo result 2](./img/result/2.jpg)\n\n![Demo result 3](./img/result/3.jpg)\n\n\n# Reference\n\nAll test images are from [Free-Photos](https://pixabay.com/users/free-photos-242387).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fbatch-crop-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlee%2Fbatch-crop-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fbatch-crop-images/lists"}