{"id":19082242,"url":"https://github.com/waikato-datamining/simple-image-debayer","last_synced_at":"2026-03-08T19:31:00.191Z","repository":{"id":57467471,"uuid":"266635092","full_name":"waikato-datamining/simple-image-debayer","owner":"waikato-datamining","description":"Simple image debayering with OpenCV.","archived":false,"fork":false,"pushed_at":"2024-12-20T00:47:24.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-25T20:02:47.802Z","etag":null,"topics":["debayering","image-debayering","image-processing","opencv","python3"],"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/waikato-datamining.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","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":"2020-05-24T22:26:38.000Z","updated_at":"2024-12-20T00:47:28.000Z","dependencies_parsed_at":"2024-11-09T02:52:52.990Z","dependency_job_id":null,"html_url":"https://github.com/waikato-datamining/simple-image-debayer","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"723107ef575ffc694130d9895364436d1e532871"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-debayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-debayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-debayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-debayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waikato-datamining","download_url":"https://codeload.github.com/waikato-datamining/simple-image-debayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251667146,"owners_count":21624440,"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":["debayering","image-debayering","image-processing","opencv","python3"],"created_at":"2024-11-09T02:42:40.228Z","updated_at":"2026-03-08T19:31:00.159Z","avatar_url":"https://github.com/waikato-datamining.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-image-debayer\nSimple library for debayering images with OpenCV.\n\nSee the Wikipedia article on the [Bayer filter](https://en.wikipedia.org/wiki/Bayer_filter)\nfor more information.\n\n\n## Installation\n\n```commandline\npip install simple_image_debayer\n```\n\n## Usage\n\n### Command-line\n\nYou can use the `sid-debayer` command-line tool for debayering directories:\n\n```\nusage: sid-debayer [-h] -i DIR [-I EXT] [-r] [-o DIR] [-O EXT] [-c PROFILE]\n                   [-p NUM] [-e] [-d] [-v] [-n]\n\nDebayers images in a directory.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i DIR, --input_dir DIR\n                        the directory to process (default: None)\n  -I EXT, --input_ext EXT\n                        the extension to look for in the input directory\n                        (default: bmp)\n  -r, --recursive       whether to look for images recursively (default:\n                        False)\n  -o DIR, --output_dir DIR\n                        the directory to store the debayered images in;\n                        performs in-place debayering if not specified\n                        (default: None)\n  -O EXT, --output_ext EXT\n                        the extension to use for the generated images\n                        (default: jpg)\n  -c PROFILE, --color_profile PROFILE\n                        the OpenCV color profile to use for debayering\n                        (cv2.COLOR_BAYER_*) (default: COLOR_BAYER_BG2BGR)\n  -p NUM, --progress_interval NUM\n                        the interval of processed images to output progress\n                        information in the console (default: 100)\n  -e, --ignore_errors   whether to ignore any errors and keep debayering\n                        (default: False)\n  -d, --delete          whether to delete the input file after successfully\n                        debayering it (default: False)\n  -v, --verbose         whether to output directories being processed\n                        (default: False)\n  -n, --dry_run         whether to perform a dry-run; --verbose should be used\n                        in conjunction with this flag (default: False)\n```\n\n### Python\n\nOf course, the tool can be used as a Python library as well.\n\nThe module `sid.debayer` contains the following methods among others:\n\n* `debayer_dir` - for debayering a directory (that is the main routine)\n* `debayer_file` - for debayering a single file\n* `debayer_image` - for debayering an in-memory image (in/out: `ndarray`)\n* `read_image` - reads a bayered image into memory (out: `ndarray`)\n* `write_image` - writes a debayered image to disk (in: `ndarray`)\n* `eval_color_profile` - turns the color profile string (e.g., `COLOR_BAYER_BG2BGR`) into an integer constant \n  (e.g., `cv2.COLOR_BAYER_BG2BGR`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaikato-datamining%2Fsimple-image-debayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaikato-datamining%2Fsimple-image-debayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaikato-datamining%2Fsimple-image-debayer/lists"}