{"id":24956570,"url":"https://github.com/michalkielan/colorscope","last_synced_at":"2026-04-12T22:44:43.200Z","repository":{"id":75479697,"uuid":"166127432","full_name":"michalkielan/ColorScope","owner":"michalkielan","description":"Tool for debugging colors","archived":false,"fork":false,"pushed_at":"2019-06-07T18:09:12.000Z","size":1785,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T20:37:30.378Z","etag":null,"topics":["colorspace","opencv","opencv-python","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/michalkielan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-01-16T23:27:14.000Z","updated_at":"2021-04-25T18:55:49.000Z","dependencies_parsed_at":"2023-06-06T15:00:28.253Z","dependency_job_id":null,"html_url":"https://github.com/michalkielan/ColorScope","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/michalkielan/ColorScope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkielan%2FColorScope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkielan%2FColorScope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkielan%2FColorScope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkielan%2FColorScope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalkielan","download_url":"https://codeload.github.com/michalkielan/ColorScope/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalkielan%2FColorScope/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268512159,"owners_count":24261887,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["colorspace","opencv","opencv-python","python"],"created_at":"2025-02-03T06:35:50.194Z","updated_at":"2026-04-12T22:44:38.156Z","avatar_url":"https://github.com/michalkielan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorScope [![Travis CI](https://travis-ci.org/michalkielan/ColorScope.svg?branch=master)](https://travis-ci.org/michalkielan/ColorScope) [![Build status](https://ci.appveyor.com/api/projects/status/92q4lasei6qnrlkk/branch/master?svg=true)](https://ci.appveyor.com/project/michalkielan/colorscope/branch/master) [![Coverage Status](http://coveralls.io/repos/github/michalkielan/ColorScope/badge.svg?branch=master)](https://coveralls.io/github/michalkielan/ColorScope?branch=master)\n\n\n![Logo](res/logo.png)\n\nTool for analyze the image quality\n\n## Requirements\n* python-opencv\n* matplotlib\n* scikit-image\n\n```\n$ sudo pip install opencv-python matplotlib scikit-image\n```\n\n## Usage\nOutput format supported: `rgb`, `yuv`, `hsv`, `hls`\n\n```\n$ ./colorscope.py -i image.jpeg -out_fmt=rgb\nR      G      B\n23     24     232\n255    255    255\n...\n```\n\nRaw input images\n```\n$ ./colorscope.py -i image.yuv -pix_fmt=nv21 -s 640x480 -out_fmt=rgb\n```\n\nMeasure and plot data\n```\n$ ./colorscope.py -i reference.jpeg -out_fmt=hls -o ref.json\n$ ./colorscope.py -i capture.jpeg -out_fmt=hls -o cap.json\n$ ./colorscope.py -gen ref.json cap.json\n```\n\n# Quality metrics\nCompare of two images quality using PSNR and SSIM metric for multichannel  \n```\n$ ./colorscope.py -cp metrics reference_image_dir ref_pixel_format ref_video_size capture_image_dir cap_pixel_format cap_video_size\n```\nFor non raw images video size and pixel format can be ommited\n```\n$ ./colorscope.py -scp 0 ssim reference.jpg capture.jpg\n$ ./colorscope.py -scp 0 psnr reference.jpg capture.jpg\n```\n\nMultichannel examples:\n```\n$ ./colorscope.py -cp ssim  reference.yuv nv12 1920x1080 capture.yuv nv12 1920x1080\n$ ./colorscope.py -cp ssim reference.jpg capture.jpg\n$ ./colorscope.py -cp psnr reference.jpg capture.jpg\n```\n\nCompare of two images quality using PSNR and SSIM metric for single channel\n```\n$ ./colorscope.py -scp metrics channel_number reference_image_dir ref__pxl_format ref_video_size capture_image_dir cap_pxl_format cap_video_size\n```\nChannel should be given accordingly to openCV color representation:\nFor BGR (typical way openCV stores RGB)\n* blue 0\n* green 1\n* red 2\n\nFor YUV:\n* Y 0\n* U 1\n* V 2\n\nSingle channel examples\n```\n$ ./colorscope.py -scp ssim 0  reference.yuv nv12 1920x1080 capture.yuv nv12 1920x1080\n$ ./colorscope.py -scp psnr 2 reference.jpg capture.jpg\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalkielan%2Fcolorscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalkielan%2Fcolorscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalkielan%2Fcolorscope/lists"}