{"id":16345454,"url":"https://github.com/unclechu/crop-detector","last_synced_at":"2025-11-07T15:30:26.995Z","repository":{"id":66006976,"uuid":"55224284","full_name":"unclechu/crop-detector","owner":"unclechu","description":"Utility that finds cropped image coordinates inside original image","archived":false,"fork":false,"pushed_at":"2016-04-03T14:48:53.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T22:24:43.869Z","etag":null,"topics":["crop-image","haskell"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unclechu.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":"2016-04-01T10:30:45.000Z","updated_at":"2016-11-03T15:44:49.000Z","dependencies_parsed_at":"2023-04-16T06:00:37.704Z","dependency_job_id":null,"html_url":"https://github.com/unclechu/crop-detector","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"f21a882643611b90902a912385b47e913f519fee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fcrop-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fcrop-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fcrop-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fcrop-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unclechu","download_url":"https://codeload.github.com/unclechu/crop-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533067,"owners_count":19654617,"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","haskell"],"created_at":"2024-10-11T00:31:51.623Z","updated_at":"2025-11-07T15:30:26.862Z","avatar_url":"https://github.com/unclechu.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"crop-detector\n=============\n\nUtility that finds cropped image coordinates inside original image.\n\n\u003cb\u003eWork in progress...\u003c/b\u003e\n\nUsage\n-----\n\n```bash\ncrop-detector DIFF_THRESHOLD ORIGINAL_IMAGE CROPPED_IMAGE\n```\n\nWhere:\n  - MODE\n    - `every-pixel` -\n      for check every pixel for diff limit\n      (faster than `average` but needs higher diff threshold);\n    - `average` -\n      for check average value of whole crop-size chunk at position on\n      original image (very slow but better for JPEG artifacts,\n\t\t\trecommended to use this mode with `-parallel` suffix);\n    - Every mode has `perfect-` prefix, by default this app stops when\n      found first match, but with `perfect-` prefix it checks all\n      possible coordinates and choose best match, in many cases a lot\n      slower but gets you some guarantees, possible modes with this prefix:\n      - `perfect-every-pixel`\n      - `perfect-average`\n  - DIFF_THRESHOLD - Max percent of allowed difference (for JPEG artifacts);\n  - ORIGINAL_IMAGE - Path to whole image;\n  - CROPPED_IMAGE  - Path to image that is cropped part of ORIGINAL_IMAGE.\n\nExample cmd:\n  ```bash\n  crop-detector every-pixel 20 ~/Pictures/original.jpg ~/Pictures/cropped.jpg\n  ```\n\nExample output: `137 260 201 181`\nIt's: `x y width height` of cropped image.\n\nAuthor\n------\n\nViacheslav Lotsmanov\n\nLicense\n-------\n\n[GPLv3](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fcrop-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funclechu%2Fcrop-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fcrop-detector/lists"}