{"action":"opened","number":12454,"pull_request":{"url":"https://api.github.com/repos/opencv/opencv/pulls/12454","id":213785717,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNzg1NzE3","html_url":"https://github.com/opencv/opencv/pull/12454","diff_url":"https://github.com/opencv/opencv/pull/12454.diff","patch_url":"https://github.com/opencv/opencv/pull/12454.patch","issue_url":"https://api.github.com/repos/opencv/opencv/issues/12454","number":12454,"state":"open","locked":false,"title":"Add support for changing fourcc and support mono formats (e.g. Y8, Y16)","user":{"login":"jveitchmichaelis","id":3159591,"node_id":"MDQ6VXNlcjMxNTk1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/3159591?v=4","gravatar_id":"","url":"https://api.github.com/users/jveitchmichaelis","html_url":"https://github.com/jveitchmichaelis","followers_url":"https://api.github.com/users/jveitchmichaelis/followers","following_url":"https://api.github.com/users/jveitchmichaelis/following{/other_user}","gists_url":"https://api.github.com/users/jveitchmichaelis/gists{/gist_id}","starred_url":"https://api.github.com/users/jveitchmichaelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jveitchmichaelis/subscriptions","organizations_url":"https://api.github.com/users/jveitchmichaelis/orgs","repos_url":"https://api.github.com/users/jveitchmichaelis/repos","events_url":"https://api.github.com/users/jveitchmichaelis/events{/privacy}","received_events_url":"https://api.github.com/users/jveitchmichaelis/received_events","type":"User","site_admin":false},"body":"### This pullrequest changes\r\n\r\nThis PR adds support for Y16 cameras (and some others) using the DirectShow library on Windows. In the process it also fixes a bug where changing the FOURCC property has no effect. This code is based on a modified patch from e-Con systems, published here with their permission (see [here](https://www.e-consystems.com/blog/camera/accessing-see3cam-custom-format-with-opencv/)).\r\n\r\nGiven the discussion here: https://github.com/opencv/opencv/pull/7196 I've tried to keep the same behavior:\r\n\r\n- Cameras still open in RGB24 mode by default\r\n- If the user selects Y16 via `CAP_PROP_FOURCC`, DirectShow retrieves a 16-bit image, but it is implicitly converted to a grey RGB image and returned. I bit-shift the image for the conversion.\r\n- If the user sets `CV_CAP_PROP_CONVERT_RGB` to `false`, a 16 bit Mat is returned\r\n\r\nI've tested this with a FLIR Boson in both RGB and Y16 modes.","created_at":"2018-09-07T00:27:42Z","updated_at":"2018-09-07T00:27:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/opencv/opencv/pulls/12454/commits","review_comments_url":"https://api.github.com/repos/opencv/opencv/pulls/12454/comments","review_comment_url":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/12454/comments","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/f21131dbba7dc1d5a672dc3e718fc7b03c993b1d","head":{"label":"jveitchmichaelis:y16_dshow_windows","ref":"y16_dshow_windows","sha":"f21131dbba7dc1d5a672dc3e718fc7b03c993b1d","user":{"login":"jveitchmichaelis","id":3159591,"node_id":"MDQ6VXNlcjMxNTk1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/3159591?v=4","gravatar_id":"","url":"https://api.github.com/users/jveitchmichaelis","html_url":"https://github.com/jveitchmichaelis","followers_url":"https://api.github.com/users/jveitchmichaelis/followers","following_url":"https://api.github.com/users/jveitchmichaelis/following{/other_user}","gists_url":"https://api.github.com/users/jveitchmichaelis/gists{/gist_id}","starred_url":"https://api.github.com/users/jveitchmichaelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jveitchmichaelis/subscriptions","organizations_url":"https://api.github.com/users/jveitchmichaelis/orgs","repos_url":"https://api.github.com/users/jveitchmichaelis/repos","events_url":"https://api.github.com/users/jveitchmichaelis/events{/privacy}","received_events_url":"https://api.github.com/users/jveitchmichaelis/received_events","type":"User","site_admin":false},"repo":{"id":89808098,"node_id":"MDEwOlJlcG9zaXRvcnk4OTgwODA5OA==","name":"opencv","full_name":"jveitchmichaelis/opencv","owner":{"login":"jveitchmichaelis","id":3159591,"node_id":"MDQ6VXNlcjMxNTk1OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/3159591?v=4","gravatar_id":"","url":"https://api.github.com/users/jveitchmichaelis","html_url":"https://github.com/jveitchmichaelis","followers_url":"https://api.github.com/users/jveitchmichaelis/followers","following_url":"https://api.github.com/users/jveitchmichaelis/following{/other_user}","gists_url":"https://api.github.com/users/jveitchmichaelis/gists{/gist_id}","starred_url":"https://api.github.com/users/jveitchmichaelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jveitchmichaelis/subscriptions","organizations_url":"https://api.github.com/users/jveitchmichaelis/orgs","repos_url":"https://api.github.com/users/jveitchmichaelis/repos","events_url":"https://api.github.com/users/jveitchmichaelis/events{/privacy}","received_events_url":"https://api.github.com/users/jveitchmichaelis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jveitchmichaelis/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/jveitchmichaelis/opencv","forks_url":"https://api.github.com/repos/jveitchmichaelis/opencv/forks","keys_url":"https://api.github.com/repos/jveitchmichaelis/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jveitchmichaelis/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jveitchmichaelis/opencv/teams","hooks_url":"https://api.github.com/repos/jveitchmichaelis/opencv/hooks","issue_events_url":"https://api.github.com/repos/jveitchmichaelis/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/jveitchmichaelis/opencv/events","assignees_url":"https://api.github.com/repos/jveitchmichaelis/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/jveitchmichaelis/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/jveitchmichaelis/opencv/tags","blobs_url":"https://api.github.com/repos/jveitchmichaelis/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jveitchmichaelis/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jveitchmichaelis/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/jveitchmichaelis/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jveitchmichaelis/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/jveitchmichaelis/opencv/languages","stargazers_url":"https://api.github.com/repos/jveitchmichaelis/opencv/stargazers","contributors_url":"https://api.github.com/repos/jveitchmichaelis/opencv/contributors","subscribers_url":"https://api.github.com/repos/jveitchmichaelis/opencv/subscribers","subscription_url":"https://api.github.com/repos/jveitchmichaelis/opencv/subscription","commits_url":"https://api.github.com/repos/jveitchmichaelis/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/jveitchmichaelis/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/jveitchmichaelis/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/jveitchmichaelis/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/jveitchmichaelis/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/jveitchmichaelis/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jveitchmichaelis/opencv/merges","archive_url":"https://api.github.com/repos/jveitchmichaelis/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jveitchmichaelis/opencv/downloads","issues_url":"https://api.github.com/repos/jveitchmichaelis/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/jveitchmichaelis/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/jveitchmichaelis/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/jveitchmichaelis/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jveitchmichaelis/opencv/labels{/name}","releases_url":"https://api.github.com/repos/jveitchmichaelis/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/jveitchmichaelis/opencv/deployments","created_at":"2017-04-29T19:35:03Z","updated_at":"2018-09-04T01:15:23Z","pushed_at":"2018-09-07T00:12:19Z","git_url":"git://github.com/jveitchmichaelis/opencv.git","ssh_url":"git@github.com:jveitchmichaelis/opencv.git","clone_url":"https://github.com/jveitchmichaelis/opencv.git","svn_url":"https://github.com/jveitchmichaelis/opencv","homepage":"opencv.org","size":458295,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"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":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opencv:master","ref":"master","sha":"da7e1cfb495be131fe7d4668b163cd1cd75e7670","user":{"login":"opencv","id":5009934,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwMDk5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5009934?v=4","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"node_id":"MDEwOlJlcG9zaXRvcnk1MTA4MDUx","name":"opencv","full_name":"opencv/opencv","owner":{"login":"opencv","id":5009934,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwMDk5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5009934?v=4","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencv/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/opencv/opencv","forks_url":"https://api.github.com/repos/opencv/opencv/forks","keys_url":"https://api.github.com/repos/opencv/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencv/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencv/opencv/teams","hooks_url":"https://api.github.com/repos/opencv/opencv/hooks","issue_events_url":"https://api.github.com/repos/opencv/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/opencv/opencv/events","assignees_url":"https://api.github.com/repos/opencv/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/opencv/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/opencv/opencv/tags","blobs_url":"https://api.github.com/repos/opencv/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencv/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencv/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencv/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/opencv/opencv/languages","stargazers_url":"https://api.github.com/repos/opencv/opencv/stargazers","contributors_url":"https://api.github.com/repos/opencv/opencv/contributors","subscribers_url":"https://api.github.com/repos/opencv/opencv/subscribers","subscription_url":"https://api.github.com/repos/opencv/opencv/subscription","commits_url":"https://api.github.com/repos/opencv/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencv/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencv/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencv/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencv/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/opencv/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencv/opencv/merges","archive_url":"https://api.github.com/repos/opencv/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencv/opencv/downloads","issues_url":"https://api.github.com/repos/opencv/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/opencv/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/opencv/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/opencv/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencv/opencv/labels{/name}","releases_url":"https://api.github.com/repos/opencv/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/opencv/opencv/deployments","created_at":"2012-07-19T09:40:17Z","updated_at":"2018-09-06T21:53:00Z","pushed_at":"2018-09-06T21:13:15Z","git_url":"git://github.com/opencv/opencv.git","ssh_url":"git@github.com:opencv/opencv.git","clone_url":"https://github.com/opencv/opencv.git","svn_url":"https://github.com/opencv/opencv","homepage":"https://opencv.org","size":458986,"stargazers_count":27442,"watchers_count":27442,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19661,"mirror_url":null,"archived":false,"open_issues_count":1518,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":19661,"open_issues":1518,"watchers":27442,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencv/opencv/pulls/12454"},"html":{"href":"https://github.com/opencv/opencv/pull/12454"},"issue":{"href":"https://api.github.com/repos/opencv/opencv/issues/12454"},"comments":{"href":"https://api.github.com/repos/opencv/opencv/issues/12454/comments"},"review_comments":{"href":"https://api.github.com/repos/opencv/opencv/pulls/12454/comments"},"review_comment":{"href":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencv/opencv/pulls/12454/commits"},"statuses":{"href":"https://api.github.com/repos/opencv/opencv/statuses/f21131dbba7dc1d5a672dc3e718fc7b03c993b1d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":205,"deletions":46,"changed_files":1}}
{"actor":{"display_login":"jveitchmichaelis"}}