{"action":"created","comment":{"url":"https://api.github.com/repos/hybridgroup/gocv/pulls/comments/173200705","pull_request_review_id":102349822,"id":173200705,"diff_hunk":"@@ -109,3 +109,18 @@ func BlobFromImage(img Mat, scaleFactor float64, size image.Point, mean Scalar,\n \n \treturn Mat{p: C.Net_BlobFromImage(img.p, C.double(scaleFactor), sz, sMean, C.bool(swapRB), C.bool(crop))}\n }\n+\n+// GetBlobChannel extracts a single (2d)channel from a 4 dimensional blob structure\n+// (this might e.g. contain the results of a SSD or YOLO detection,\n+//  a bones structure from pose detection, or a color plane from Colorization)\n+//\n+func GetBlobChannel(blob Mat, imgidx int, chnidx int) Mat {\n+\treturn Mat{p: C.Net_GetBlobChannel(blob.p, C.int(imgidx), C.int(chnidx))}\n+}\n+\n+// GetBlobSize retrieves the 4 dimensional size information in (N,C,H,W) order\n+//","path":"dnn.go","position":14,"original_position":14,"commit_id":"b3fa3610de19d5a5c0464a4eef3087a2009df532","original_commit_id":"b3fa3610de19d5a5c0464a4eef3087a2009df532","user":{"login":"willdurand","id":217628,"avatar_url":"https://avatars0.githubusercontent.com/u/217628?v=4","gravatar_id":"","url":"https://api.github.com/users/willdurand","html_url":"https://github.com/willdurand","followers_url":"https://api.github.com/users/willdurand/followers","following_url":"https://api.github.com/users/willdurand/following{/other_user}","gists_url":"https://api.github.com/users/willdurand/gists{/gist_id}","starred_url":"https://api.github.com/users/willdurand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willdurand/subscriptions","organizations_url":"https://api.github.com/users/willdurand/orgs","repos_url":"https://api.github.com/users/willdurand/repos","events_url":"https://api.github.com/users/willdurand/events{/privacy}","received_events_url":"https://api.github.com/users/willdurand/received_events","type":"User","site_admin":false},"body":"This was not really needed, and we usually put a period at the end of the line because we write sentences :)","created_at":"2018-03-08T15:53:18Z","updated_at":"2018-03-08T15:53:18Z","html_url":"https://github.com/hybridgroup/gocv/pull/119#discussion_r173200705","pull_request_url":"https://api.github.com/repos/hybridgroup/gocv/pulls/119","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/comments/173200705"},"html":{"href":"https://github.com/hybridgroup/gocv/pull/119#discussion_r173200705"},"pull_request":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/hybridgroup/gocv/pulls/119","id":173104466,"html_url":"https://github.com/hybridgroup/gocv/pull/119","diff_url":"https://github.com/hybridgroup/gocv/pull/119.diff","patch_url":"https://github.com/hybridgroup/gocv/pull/119.patch","issue_url":"https://api.github.com/repos/hybridgroup/gocv/issues/119","number":119,"state":"closed","locked":false,"title":"dnn: add a ssd sample and a GetBlobChannel helper","user":{"login":"berak","id":854416,"avatar_url":"https://avatars0.githubusercontent.com/u/854416?v=4","gravatar_id":"","url":"https://api.github.com/users/berak","html_url":"https://github.com/berak","followers_url":"https://api.github.com/users/berak/followers","following_url":"https://api.github.com/users/berak/following{/other_user}","gists_url":"https://api.github.com/users/berak/gists{/gist_id}","starred_url":"https://api.github.com/users/berak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berak/subscriptions","organizations_url":"https://api.github.com/users/berak/orgs","repos_url":"https://api.github.com/users/berak/repos","events_url":"https://api.github.com/users/berak/events{/privacy}","received_events_url":"https://api.github.com/users/berak/received_events","type":"User","site_admin":false},"body":"* GetBlobChannel : used to retrieve channels from a 4d blob. Mat.Ptr() is already taken, and this is quite specific to the dnn code, so i add a helper there (+ a test, ofc.).\r\n* ssd sample: a demo how to use ssd networks, this one specifically does face detection. small model (5mb only !) , and much faster than the cascades !\r\n(but the extraction part would be exactly the same for other ssd models, or even YOLO)","created_at":"2018-03-06T09:43:39Z","updated_at":"2018-03-08T15:53:18Z","closed_at":"2018-03-08T15:49:54Z","merged_at":"2018-03-08T15:49:54Z","merge_commit_sha":"8daae5e6566921ce3cb339f4901d37882ac8afb3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hybridgroup/gocv/pulls/119/commits","review_comments_url":"https://api.github.com/repos/hybridgroup/gocv/pulls/119/comments","review_comment_url":"https://api.github.com/repos/hybridgroup/gocv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hybridgroup/gocv/issues/119/comments","statuses_url":"https://api.github.com/repos/hybridgroup/gocv/statuses/b3fa3610de19d5a5c0464a4eef3087a2009df532","head":{"label":"berak:dnn_planes","ref":"dnn_planes","sha":"b3fa3610de19d5a5c0464a4eef3087a2009df532","user":{"login":"berak","id":854416,"avatar_url":"https://avatars0.githubusercontent.com/u/854416?v=4","gravatar_id":"","url":"https://api.github.com/users/berak","html_url":"https://github.com/berak","followers_url":"https://api.github.com/users/berak/followers","following_url":"https://api.github.com/users/berak/following{/other_user}","gists_url":"https://api.github.com/users/berak/gists{/gist_id}","starred_url":"https://api.github.com/users/berak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berak/subscriptions","organizations_url":"https://api.github.com/users/berak/orgs","repos_url":"https://api.github.com/users/berak/repos","events_url":"https://api.github.com/users/berak/events{/privacy}","received_events_url":"https://api.github.com/users/berak/received_events","type":"User","site_admin":false},"repo":{"id":111654582,"name":"gocv","full_name":"berak/gocv","owner":{"login":"berak","id":854416,"avatar_url":"https://avatars0.githubusercontent.com/u/854416?v=4","gravatar_id":"","url":"https://api.github.com/users/berak","html_url":"https://github.com/berak","followers_url":"https://api.github.com/users/berak/followers","following_url":"https://api.github.com/users/berak/following{/other_user}","gists_url":"https://api.github.com/users/berak/gists{/gist_id}","starred_url":"https://api.github.com/users/berak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berak/subscriptions","organizations_url":"https://api.github.com/users/berak/orgs","repos_url":"https://api.github.com/users/berak/repos","events_url":"https://api.github.com/users/berak/events{/privacy}","received_events_url":"https://api.github.com/users/berak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/berak/gocv","description":"Go package for computer vision using OpenCV 3.3+","fork":true,"url":"https://api.github.com/repos/berak/gocv","forks_url":"https://api.github.com/repos/berak/gocv/forks","keys_url":"https://api.github.com/repos/berak/gocv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berak/gocv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berak/gocv/teams","hooks_url":"https://api.github.com/repos/berak/gocv/hooks","issue_events_url":"https://api.github.com/repos/berak/gocv/issues/events{/number}","events_url":"https://api.github.com/repos/berak/gocv/events","assignees_url":"https://api.github.com/repos/berak/gocv/assignees{/user}","branches_url":"https://api.github.com/repos/berak/gocv/branches{/branch}","tags_url":"https://api.github.com/repos/berak/gocv/tags","blobs_url":"https://api.github.com/repos/berak/gocv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berak/gocv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berak/gocv/git/refs{/sha}","trees_url":"https://api.github.com/repos/berak/gocv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berak/gocv/statuses/{sha}","languages_url":"https://api.github.com/repos/berak/gocv/languages","stargazers_url":"https://api.github.com/repos/berak/gocv/stargazers","contributors_url":"https://api.github.com/repos/berak/gocv/contributors","subscribers_url":"https://api.github.com/repos/berak/gocv/subscribers","subscription_url":"https://api.github.com/repos/berak/gocv/subscription","commits_url":"https://api.github.com/repos/berak/gocv/commits{/sha}","git_commits_url":"https://api.github.com/repos/berak/gocv/git/commits{/sha}","comments_url":"https://api.github.com/repos/berak/gocv/comments{/number}","issue_comment_url":"https://api.github.com/repos/berak/gocv/issues/comments{/number}","contents_url":"https://api.github.com/repos/berak/gocv/contents/{+path}","compare_url":"https://api.github.com/repos/berak/gocv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berak/gocv/merges","archive_url":"https://api.github.com/repos/berak/gocv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berak/gocv/downloads","issues_url":"https://api.github.com/repos/berak/gocv/issues{/number}","pulls_url":"https://api.github.com/repos/berak/gocv/pulls{/number}","milestones_url":"https://api.github.com/repos/berak/gocv/milestones{/number}","notifications_url":"https://api.github.com/repos/berak/gocv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berak/gocv/labels{/name}","releases_url":"https://api.github.com/repos/berak/gocv/releases{/id}","deployments_url":"https://api.github.com/repos/berak/gocv/deployments","created_at":"2017-11-22T08:08:11Z","updated_at":"2017-11-22T08:08:13Z","pushed_at":"2018-03-08T08:51:07Z","git_url":"git://github.com/berak/gocv.git","ssh_url":"git@github.com:berak/gocv.git","clone_url":"https://github.com/berak/gocv.git","svn_url":"https://github.com/berak/gocv","homepage":"https://gocv.io","size":2019,"stargazers_count":0,"watchers_count":0,"language":"Go","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hybridgroup:dev","ref":"dev","sha":"486d704a2ecfe7ff33f7fe390883ddf815d1f345","user":{"login":"hybridgroup","id":212109,"avatar_url":"https://avatars1.githubusercontent.com/u/212109?v=4","gravatar_id":"","url":"https://api.github.com/users/hybridgroup","html_url":"https://github.com/hybridgroup","followers_url":"https://api.github.com/users/hybridgroup/followers","following_url":"https://api.github.com/users/hybridgroup/following{/other_user}","gists_url":"https://api.github.com/users/hybridgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/hybridgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hybridgroup/subscriptions","organizations_url":"https://api.github.com/users/hybridgroup/orgs","repos_url":"https://api.github.com/users/hybridgroup/repos","events_url":"https://api.github.com/users/hybridgroup/events{/privacy}","received_events_url":"https://api.github.com/users/hybridgroup/received_events","type":"Organization","site_admin":false},"repo":{"id":103995895,"name":"gocv","full_name":"hybridgroup/gocv","owner":{"login":"hybridgroup","id":212109,"avatar_url":"https://avatars1.githubusercontent.com/u/212109?v=4","gravatar_id":"","url":"https://api.github.com/users/hybridgroup","html_url":"https://github.com/hybridgroup","followers_url":"https://api.github.com/users/hybridgroup/followers","following_url":"https://api.github.com/users/hybridgroup/following{/other_user}","gists_url":"https://api.github.com/users/hybridgroup/gists{/gist_id}","starred_url":"https://api.github.com/users/hybridgroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hybridgroup/subscriptions","organizations_url":"https://api.github.com/users/hybridgroup/orgs","repos_url":"https://api.github.com/users/hybridgroup/repos","events_url":"https://api.github.com/users/hybridgroup/events{/privacy}","received_events_url":"https://api.github.com/users/hybridgroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hybridgroup/gocv","description":"Go package for computer vision using OpenCV 3+ and beyond.","fork":false,"url":"https://api.github.com/repos/hybridgroup/gocv","forks_url":"https://api.github.com/repos/hybridgroup/gocv/forks","keys_url":"https://api.github.com/repos/hybridgroup/gocv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hybridgroup/gocv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hybridgroup/gocv/teams","hooks_url":"https://api.github.com/repos/hybridgroup/gocv/hooks","issue_events_url":"https://api.github.com/repos/hybridgroup/gocv/issues/events{/number}","events_url":"https://api.github.com/repos/hybridgroup/gocv/events","assignees_url":"https://api.github.com/repos/hybridgroup/gocv/assignees{/user}","branches_url":"https://api.github.com/repos/hybridgroup/gocv/branches{/branch}","tags_url":"https://api.github.com/repos/hybridgroup/gocv/tags","blobs_url":"https://api.github.com/repos/hybridgroup/gocv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hybridgroup/gocv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hybridgroup/gocv/git/refs{/sha}","trees_url":"https://api.github.com/repos/hybridgroup/gocv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hybridgroup/gocv/statuses/{sha}","languages_url":"https://api.github.com/repos/hybridgroup/gocv/languages","stargazers_url":"https://api.github.com/repos/hybridgroup/gocv/stargazers","contributors_url":"https://api.github.com/repos/hybridgroup/gocv/contributors","subscribers_url":"https://api.github.com/repos/hybridgroup/gocv/subscribers","subscription_url":"https://api.github.com/repos/hybridgroup/gocv/subscription","commits_url":"https://api.github.com/repos/hybridgroup/gocv/commits{/sha}","git_commits_url":"https://api.github.com/repos/hybridgroup/gocv/git/commits{/sha}","comments_url":"https://api.github.com/repos/hybridgroup/gocv/comments{/number}","issue_comment_url":"https://api.github.com/repos/hybridgroup/gocv/issues/comments{/number}","contents_url":"https://api.github.com/repos/hybridgroup/gocv/contents/{+path}","compare_url":"https://api.github.com/repos/hybridgroup/gocv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hybridgroup/gocv/merges","archive_url":"https://api.github.com/repos/hybridgroup/gocv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hybridgroup/gocv/downloads","issues_url":"https://api.github.com/repos/hybridgroup/gocv/issues{/number}","pulls_url":"https://api.github.com/repos/hybridgroup/gocv/pulls{/number}","milestones_url":"https://api.github.com/repos/hybridgroup/gocv/milestones{/number}","notifications_url":"https://api.github.com/repos/hybridgroup/gocv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hybridgroup/gocv/labels{/name}","releases_url":"https://api.github.com/repos/hybridgroup/gocv/releases{/id}","deployments_url":"https://api.github.com/repos/hybridgroup/gocv/deployments","created_at":"2017-09-18T21:54:17Z","updated_at":"2018-03-08T12:46:08Z","pushed_at":"2018-03-08T15:49:54Z","git_url":"git://github.com/hybridgroup/gocv.git","ssh_url":"git@github.com:hybridgroup/gocv.git","clone_url":"https://github.com/hybridgroup/gocv.git","svn_url":"https://github.com/hybridgroup/gocv","homepage":"https://gocv.io","size":1948,"stargazers_count":725,"watchers_count":725,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":84,"open_issues":19,"watchers":725,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/119"},"html":{"href":"https://github.com/hybridgroup/gocv/pull/119"},"issue":{"href":"https://api.github.com/repos/hybridgroup/gocv/issues/119"},"comments":{"href":"https://api.github.com/repos/hybridgroup/gocv/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/hybridgroup/gocv/statuses/b3fa3610de19d5a5c0464a4eef3087a2009df532"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"willdurand"}}