{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/8","id":214859279,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0ODU5Mjc5","html_url":"https://github.com/ebiiim/mov-dedup/pull/8","diff_url":"https://github.com/ebiiim/mov-dedup/pull/8.diff","patch_url":"https://github.com/ebiiim/mov-dedup/pull/8.patch","issue_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues/8","number":8,"state":"closed","locked":false,"title":"Feature subcolor","user":{"login":"Umineko4396","id":42932611,"node_id":"MDQ6VXNlcjQyOTMyNjEx","avatar_url":"https://avatars3.githubusercontent.com/u/42932611?v=4","gravatar_id":"","url":"https://api.github.com/users/Umineko4396","html_url":"https://github.com/Umineko4396","followers_url":"https://api.github.com/users/Umineko4396/followers","following_url":"https://api.github.com/users/Umineko4396/following{/other_user}","gists_url":"https://api.github.com/users/Umineko4396/gists{/gist_id}","starred_url":"https://api.github.com/users/Umineko4396/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Umineko4396/subscriptions","organizations_url":"https://api.github.com/users/Umineko4396/orgs","repos_url":"https://api.github.com/users/Umineko4396/repos","events_url":"https://api.github.com/users/Umineko4396/events{/privacy}","received_events_url":"https://api.github.com/users/Umineko4396/received_events","type":"User","site_admin":false},"body":"概要：\r\n　均等量子化とK-meansを使って減色処理を行うクラスです。\r\n\r\n関数の説明：\r\n　quantize_uni(src, n_color)\r\n　　単一の画像'src' に対して、'n_color'色 に均等量子化で減色する。\r\n　kmeans_uni(src, K)\r\n　　単一の画像'src' に対して、'src' に含まれる色を'K'個のクラスタに分割する。\r\n　kmeans_dir(input_dir, output_dir, K)\r\n　　'input_dir' に含まれる全画像に対して、全画像に含まれる色を'K'個のクラスタに分割し、'output_dir' に出力する。\r\n\r\n使用例1：\r\n    src = cv2.imread('./frames/00000123.png')\r\n    dst = SubtractiveColor.quantize_uni(src, 8)\r\n    cv2.imwrite('./result.png', dst)\r\n\r\n使用例2：\r\n　SubtractiveColor.kmeans_dir('./frames', './k-means', 5)\r\n\r\n（注記）：\r\n　・均等量子化の色数は「8の累乗」である必要があります。\r\n　・kmeans_dir() は、全ピクセルをメモリ上に展開するため、入力画像が多すぎる場合は動作しません。","created_at":"2018-09-12T07:22:14Z","updated_at":"2018-09-12T13:05:17Z","closed_at":"2018-09-12T13:05:17Z","merged_at":"2018-09-12T13:05:17Z","merge_commit_sha":"95af53950209b499311442bc4d9f6760ed81c46e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues/8/comments","statuses_url":"https://api.github.com/repos/ebiiim/mov-dedup/statuses/bed90e3345a73a35fa8f5fbd673520925556e417","head":{"label":"ebiiim:feature-subcolor","ref":"feature-subcolor","sha":"bed90e3345a73a35fa8f5fbd673520925556e417","user":{"login":"ebiiim","id":21201145,"node_id":"MDQ6VXNlcjIxMjAxMTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/21201145?v=4","gravatar_id":"","url":"https://api.github.com/users/ebiiim","html_url":"https://github.com/ebiiim","followers_url":"https://api.github.com/users/ebiiim/followers","following_url":"https://api.github.com/users/ebiiim/following{/other_user}","gists_url":"https://api.github.com/users/ebiiim/gists{/gist_id}","starred_url":"https://api.github.com/users/ebiiim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebiiim/subscriptions","organizations_url":"https://api.github.com/users/ebiiim/orgs","repos_url":"https://api.github.com/users/ebiiim/repos","events_url":"https://api.github.com/users/ebiiim/events{/privacy}","received_events_url":"https://api.github.com/users/ebiiim/received_events","type":"User","site_admin":false},"repo":{"id":145155837,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUxNTU4Mzc=","name":"mov-dedup","full_name":"ebiiim/mov-dedup","owner":{"login":"ebiiim","id":21201145,"node_id":"MDQ6VXNlcjIxMjAxMTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/21201145?v=4","gravatar_id":"","url":"https://api.github.com/users/ebiiim","html_url":"https://github.com/ebiiim","followers_url":"https://api.github.com/users/ebiiim/followers","following_url":"https://api.github.com/users/ebiiim/following{/other_user}","gists_url":"https://api.github.com/users/ebiiim/gists{/gist_id}","starred_url":"https://api.github.com/users/ebiiim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebiiim/subscriptions","organizations_url":"https://api.github.com/users/ebiiim/orgs","repos_url":"https://api.github.com/users/ebiiim/repos","events_url":"https://api.github.com/users/ebiiim/events{/privacy}","received_events_url":"https://api.github.com/users/ebiiim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ebiiim/mov-dedup","description":null,"fork":false,"url":"https://api.github.com/repos/ebiiim/mov-dedup","forks_url":"https://api.github.com/repos/ebiiim/mov-dedup/forks","keys_url":"https://api.github.com/repos/ebiiim/mov-dedup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebiiim/mov-dedup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebiiim/mov-dedup/teams","hooks_url":"https://api.github.com/repos/ebiiim/mov-dedup/hooks","issue_events_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues/events{/number}","events_url":"https://api.github.com/repos/ebiiim/mov-dedup/events","assignees_url":"https://api.github.com/repos/ebiiim/mov-dedup/assignees{/user}","branches_url":"https://api.github.com/repos/ebiiim/mov-dedup/branches{/branch}","tags_url":"https://api.github.com/repos/ebiiim/mov-dedup/tags","blobs_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebiiim/mov-dedup/statuses/{sha}","languages_url":"https://api.github.com/repos/ebiiim/mov-dedup/languages","stargazers_url":"https://api.github.com/repos/ebiiim/mov-dedup/stargazers","contributors_url":"https://api.github.com/repos/ebiiim/mov-dedup/contributors","subscribers_url":"https://api.github.com/repos/ebiiim/mov-dedup/subscribers","subscription_url":"https://api.github.com/repos/ebiiim/mov-dedup/subscription","commits_url":"https://api.github.com/repos/ebiiim/mov-dedup/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebiiim/mov-dedup/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebiiim/mov-dedup/contents/{+path}","compare_url":"https://api.github.com/repos/ebiiim/mov-dedup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebiiim/mov-dedup/merges","archive_url":"https://api.github.com/repos/ebiiim/mov-dedup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebiiim/mov-dedup/downloads","issues_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues{/number}","pulls_url":"https://api.github.com/repos/ebiiim/mov-dedup/pulls{/number}","milestones_url":"https://api.github.com/repos/ebiiim/mov-dedup/milestones{/number}","notifications_url":"https://api.github.com/repos/ebiiim/mov-dedup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebiiim/mov-dedup/labels{/name}","releases_url":"https://api.github.com/repos/ebiiim/mov-dedup/releases{/id}","deployments_url":"https://api.github.com/repos/ebiiim/mov-dedup/deployments","created_at":"2018-08-17T18:51:13Z","updated_at":"2018-09-09T04:01:28Z","pushed_at":"2018-09-12T13:05:17Z","git_url":"git://github.com/ebiiim/mov-dedup.git","ssh_url":"git@github.com:ebiiim/mov-dedup.git","clone_url":"https://github.com/ebiiim/mov-dedup.git","svn_url":"https://github.com/ebiiim/mov-dedup","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ebiiim:dev-0.3","ref":"dev-0.3","sha":"ef8b4710b6880eb5a950b9af3702e450c494852b","user":{"login":"ebiiim","id":21201145,"node_id":"MDQ6VXNlcjIxMjAxMTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/21201145?v=4","gravatar_id":"","url":"https://api.github.com/users/ebiiim","html_url":"https://github.com/ebiiim","followers_url":"https://api.github.com/users/ebiiim/followers","following_url":"https://api.github.com/users/ebiiim/following{/other_user}","gists_url":"https://api.github.com/users/ebiiim/gists{/gist_id}","starred_url":"https://api.github.com/users/ebiiim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebiiim/subscriptions","organizations_url":"https://api.github.com/users/ebiiim/orgs","repos_url":"https://api.github.com/users/ebiiim/repos","events_url":"https://api.github.com/users/ebiiim/events{/privacy}","received_events_url":"https://api.github.com/users/ebiiim/received_events","type":"User","site_admin":false},"repo":{"id":145155837,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUxNTU4Mzc=","name":"mov-dedup","full_name":"ebiiim/mov-dedup","owner":{"login":"ebiiim","id":21201145,"node_id":"MDQ6VXNlcjIxMjAxMTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/21201145?v=4","gravatar_id":"","url":"https://api.github.com/users/ebiiim","html_url":"https://github.com/ebiiim","followers_url":"https://api.github.com/users/ebiiim/followers","following_url":"https://api.github.com/users/ebiiim/following{/other_user}","gists_url":"https://api.github.com/users/ebiiim/gists{/gist_id}","starred_url":"https://api.github.com/users/ebiiim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebiiim/subscriptions","organizations_url":"https://api.github.com/users/ebiiim/orgs","repos_url":"https://api.github.com/users/ebiiim/repos","events_url":"https://api.github.com/users/ebiiim/events{/privacy}","received_events_url":"https://api.github.com/users/ebiiim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ebiiim/mov-dedup","description":null,"fork":false,"url":"https://api.github.com/repos/ebiiim/mov-dedup","forks_url":"https://api.github.com/repos/ebiiim/mov-dedup/forks","keys_url":"https://api.github.com/repos/ebiiim/mov-dedup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebiiim/mov-dedup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebiiim/mov-dedup/teams","hooks_url":"https://api.github.com/repos/ebiiim/mov-dedup/hooks","issue_events_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues/events{/number}","events_url":"https://api.github.com/repos/ebiiim/mov-dedup/events","assignees_url":"https://api.github.com/repos/ebiiim/mov-dedup/assignees{/user}","branches_url":"https://api.github.com/repos/ebiiim/mov-dedup/branches{/branch}","tags_url":"https://api.github.com/repos/ebiiim/mov-dedup/tags","blobs_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebiiim/mov-dedup/statuses/{sha}","languages_url":"https://api.github.com/repos/ebiiim/mov-dedup/languages","stargazers_url":"https://api.github.com/repos/ebiiim/mov-dedup/stargazers","contributors_url":"https://api.github.com/repos/ebiiim/mov-dedup/contributors","subscribers_url":"https://api.github.com/repos/ebiiim/mov-dedup/subscribers","subscription_url":"https://api.github.com/repos/ebiiim/mov-dedup/subscription","commits_url":"https://api.github.com/repos/ebiiim/mov-dedup/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebiiim/mov-dedup/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebiiim/mov-dedup/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebiiim/mov-dedup/contents/{+path}","compare_url":"https://api.github.com/repos/ebiiim/mov-dedup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebiiim/mov-dedup/merges","archive_url":"https://api.github.com/repos/ebiiim/mov-dedup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebiiim/mov-dedup/downloads","issues_url":"https://api.github.com/repos/ebiiim/mov-dedup/issues{/number}","pulls_url":"https://api.github.com/repos/ebiiim/mov-dedup/pulls{/number}","milestones_url":"https://api.github.com/repos/ebiiim/mov-dedup/milestones{/number}","notifications_url":"https://api.github.com/repos/ebiiim/mov-dedup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebiiim/mov-dedup/labels{/name}","releases_url":"https://api.github.com/repos/ebiiim/mov-dedup/releases{/id}","deployments_url":"https://api.github.com/repos/ebiiim/mov-dedup/deployments","created_at":"2018-08-17T18:51:13Z","updated_at":"2018-09-09T04:01:28Z","pushed_at":"2018-09-12T13:05:17Z","git_url":"git://github.com/ebiiim/mov-dedup.git","ssh_url":"git@github.com:ebiiim/mov-dedup.git","clone_url":"https://github.com/ebiiim/mov-dedup.git","svn_url":"https://github.com/ebiiim/mov-dedup","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/8"},"html":{"href":"https://github.com/ebiiim/mov-dedup/pull/8"},"issue":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/issues/8"},"comments":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ebiiim/mov-dedup/statuses/bed90e3345a73a35fa8f5fbd673520925556e417"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ebiiim","id":21201145,"node_id":"MDQ6VXNlcjIxMjAxMTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/21201145?v=4","gravatar_id":"","url":"https://api.github.com/users/ebiiim","html_url":"https://github.com/ebiiim","followers_url":"https://api.github.com/users/ebiiim/followers","following_url":"https://api.github.com/users/ebiiim/following{/other_user}","gists_url":"https://api.github.com/users/ebiiim/gists{/gist_id}","starred_url":"https://api.github.com/users/ebiiim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebiiim/subscriptions","organizations_url":"https://api.github.com/users/ebiiim/orgs","repos_url":"https://api.github.com/users/ebiiim/repos","events_url":"https://api.github.com/users/ebiiim/events{/privacy}","received_events_url":"https://api.github.com/users/ebiiim/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":84,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"ebiiim"}}