{"action":"created","comment":{"url":"https://api.github.com/repos/hybridgroup/gocv/pulls/comments/172799664","pull_request_review_id":101877146,"id":172799664,"diff_hunk":"@@ -0,0 +1,140 @@\n+// What it does:\n+//\n+// This example shows, how to use pretrained SSD (Single Shot Detection) detection networks in gocv.\n+// here, we detect human faces from the camera, but the setup is similar for any other kind of object detection.\n+//\n+// Download the Caffe model file from:\n+// https://raw.githubusercontent.com/opencv/opencv_3rdparty/dnn_samples_face_detector_20180205_fp16/res10_300x300_ssd_iter_140000_fp16.caffemodel\n+// (no fear, this one is fairly small, 5.1mb)\n+//\n+// Also, you will need the prototxt file:\n+// https://raw.githubusercontent.com/opencv/opencv/master/samples/dnn/face_detector/deploy.prototxt\n+//\n+// How to run:\n+//\n+// \t\tgo run ./cmd/dnn-ssd/main.go 0 [protofile] [modelfile]\n+//\n+// +build example\n+\n+package main\n+\n+import (\n+\t\"fmt\"\n+\t\"image\"\n+\t\"image/color\"\n+\t\"os\"\n+\t\"strconv\"\n+\n+\t\"gocv.io/x/gocv\"\n+)\n+\n+func min(a, b float32) float32 {","path":"cmd/dnn-ssd/main.go","position":30,"original_position":31,"commit_id":"134972884ffc69cefcf1303fa3b18aa2106103c0","original_commit_id":"b6a3e28fdabb0e8c4f415fc0c4ada6ef34dc0ded","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":"yea, the types are a problem, and that would solve it, imho.","created_at":"2018-03-07T10:32:40Z","updated_at":"2018-03-07T10:32:40Z","html_url":"https://github.com/hybridgroup/gocv/pull/119#discussion_r172799664","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/172799664"},"html":{"href":"https://github.com/hybridgroup/gocv/pull/119#discussion_r172799664"},"pull_request":{"href":"https://api.github.com/repos/hybridgroup/gocv/pulls/119"}},"in_reply_to_id":172766378},"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":"open","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-07T10:32:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19a0012c16beb2f5533a44905808e18e7c5ab295","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/134972884ffc69cefcf1303fa3b18aa2106103c0","head":{"label":"berak:dnn_planes","ref":"dnn_planes","sha":"134972884ffc69cefcf1303fa3b18aa2106103c0","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-07T09:40:41Z","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":1996,"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-07T07:30:24Z","pushed_at":"2018-03-07T09:40:43Z","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":717,"watchers_count":717,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"archived":false,"open_issues_count":21,"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":83,"open_issues":21,"watchers":717,"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/134972884ffc69cefcf1303fa3b18aa2106103c0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"berak"}}