{"action":"created","comment":{"url":"https://api.github.com/repos/ml5js/ml5-examples/pulls/comments/236073444","pull_request_review_id":178081920,"id":236073444,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjA3MzQ0NA==","diff_hunk":"@@ -0,0 +1,82 @@\n+// Copyright (c) 2018 ml5\n+//\n+// This software is released under the MIT License.\n+// https://opensource.org/licenses/MIT\n+\n+/* ===\n+ml5 Example\n+Webcam Image Classification using MobileNet and p5.js\n+This example uses a callback pattern to create the classifier\n+=== */\n+\n+let classifier;\n+let video;\n+let currentWord;\n+let currentIndex = 0;\n+let isPlaying = false;\n+const words = ['banana', 'watch', 'shoe', 'book', 'cellphone', 'keyboard', 'shirt', 'pants', 'cup'];\n+// Create a new p5.speech object\n+// You can also control the Language, Rate, Pitch and Volumn of the voice\n+// Read more at http://ability.nyu.edu/p5.js-speech/\n+const myVoice = new p5.Speech();\n+\n+function setup() {\n+  noCanvas();\n+  // Create a camera input\n+  video = createCapture(VIDEO);\n+  // Initialize the Image Classifier method with MobileNet and the video as the second argument\n+  classifier = ml5.imageClassifier('MobileNet', video, modelReady);\n+\n+  select('#start').mousePressed(() => {","path":"p5js/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js","position":30,"original_position":30,"commit_id":"4afc31f3c271822a72e55497f1c1f9b1305e8581","original_commit_id":"4afc31f3c271822a72e55497f1c1f9b1305e8581","user":{"login":"shiffman","id":191758,"node_id":"MDQ6VXNlcjE5MTc1OA==","avatar_url":"https://avatars0.githubusercontent.com/u/191758?v=4","gravatar_id":"","url":"https://api.github.com/users/shiffman","html_url":"https://github.com/shiffman","followers_url":"https://api.github.com/users/shiffman/followers","following_url":"https://api.github.com/users/shiffman/following{/other_user}","gists_url":"https://api.github.com/users/shiffman/gists{/gist_id}","starred_url":"https://api.github.com/users/shiffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiffman/subscriptions","organizations_url":"https://api.github.com/users/shiffman/orgs","repos_url":"https://api.github.com/users/shiffman/repos","events_url":"https://api.github.com/users/shiffman/events{/privacy}","received_events_url":"https://api.github.com/users/shiffman/received_events","type":"User","site_admin":false},"body":"I'm very torn about this, but at the moment we aren't using arrow syntax for p5.js examples. I think we might want to change this soon though.","created_at":"2018-11-25T13:33:31Z","updated_at":"2018-11-25T13:36:07Z","html_url":"https://github.com/ml5js/ml5-examples/pull/78#discussion_r236073444","pull_request_url":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ml5js/ml5-examples/pulls/comments/236073444"},"html":{"href":"https://github.com/ml5js/ml5-examples/pull/78#discussion_r236073444"},"pull_request":{"href":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78","id":233352233,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzUyMjMz","html_url":"https://github.com/ml5js/ml5-examples/pull/78","diff_url":"https://github.com/ml5js/ml5-examples/pull/78.diff","patch_url":"https://github.com/ml5js/ml5-examples/pull/78.patch","issue_url":"https://api.github.com/repos/ml5js/ml5-examples/issues/78","number":78,"state":"open","locked":false,"title":"Adding some simple examples","user":{"login":"yining1023","id":8662372,"node_id":"MDQ6VXNlcjg2NjIzNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/8662372?v=4","gravatar_id":"","url":"https://api.github.com/users/yining1023","html_url":"https://github.com/yining1023","followers_url":"https://api.github.com/users/yining1023/followers","following_url":"https://api.github.com/users/yining1023/following{/other_user}","gists_url":"https://api.github.com/users/yining1023/gists{/gist_id}","starred_url":"https://api.github.com/users/yining1023/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yining1023/subscriptions","organizations_url":"https://api.github.com/users/yining1023/orgs","repos_url":"https://api.github.com/users/yining1023/repos","events_url":"https://api.github.com/users/yining1023/events{/privacy}","received_events_url":"https://api.github.com/users/yining1023/received_events","type":"User","site_admin":false},"body":"I added some simple examples:\r\n- Image classifier with speech output using MobileNet and p5.speech, [demo](https://yining1023.github.io/machine-learning-for-the-web/week5-moreExamples/ImageClassification_VideoSound/).\r\n- Image classifier with translated restuls and speech output using MobileNet, Google Translate API and p5.speech, [demo](https://youtu.be/DmAZ42g7nRQ). (To run this example, you need to replace the google API key in the `sketch.js`)\r\n- Webcam Scavenger Hunt Game using MobileNet, p5.js, p5.speech, [demo](https://yining1023.github.io/machine-learning-for-the-web/week5-moreExamples/ImageClassification_VideoScavengerHunt/).\r\n\r\nI will also put the first example to p5 web editor, so it's easier for people to play with it.","created_at":"2018-11-25T02:44:23Z","updated_at":"2018-11-25T13:36:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b142278739a504948e249b38452e57172037227f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78/commits","review_comments_url":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78/comments","review_comment_url":"https://api.github.com/repos/ml5js/ml5-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ml5js/ml5-examples/issues/78/comments","statuses_url":"https://api.github.com/repos/ml5js/ml5-examples/statuses/4afc31f3c271822a72e55497f1c1f9b1305e8581","head":{"label":"ml5js:basicExample","ref":"basicExample","sha":"4afc31f3c271822a72e55497f1c1f9b1305e8581","user":{"login":"ml5js","id":36965392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2OTY1Mzky","avatar_url":"https://avatars2.githubusercontent.com/u/36965392?v=4","gravatar_id":"","url":"https://api.github.com/users/ml5js","html_url":"https://github.com/ml5js","followers_url":"https://api.github.com/users/ml5js/followers","following_url":"https://api.github.com/users/ml5js/following{/other_user}","gists_url":"https://api.github.com/users/ml5js/gists{/gist_id}","starred_url":"https://api.github.com/users/ml5js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml5js/subscriptions","organizations_url":"https://api.github.com/users/ml5js/orgs","repos_url":"https://api.github.com/users/ml5js/repos","events_url":"https://api.github.com/users/ml5js/events{/privacy}","received_events_url":"https://api.github.com/users/ml5js/received_events","type":"Organization","site_admin":false},"repo":{"id":123997353,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM5OTczNTM=","name":"ml5-examples","full_name":"ml5js/ml5-examples","private":false,"owner":{"login":"ml5js","id":36965392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2OTY1Mzky","avatar_url":"https://avatars2.githubusercontent.com/u/36965392?v=4","gravatar_id":"","url":"https://api.github.com/users/ml5js","html_url":"https://github.com/ml5js","followers_url":"https://api.github.com/users/ml5js/followers","following_url":"https://api.github.com/users/ml5js/following{/other_user}","gists_url":"https://api.github.com/users/ml5js/gists{/gist_id}","starred_url":"https://api.github.com/users/ml5js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml5js/subscriptions","organizations_url":"https://api.github.com/users/ml5js/orgs","repos_url":"https://api.github.com/users/ml5js/repos","events_url":"https://api.github.com/users/ml5js/events{/privacy}","received_events_url":"https://api.github.com/users/ml5js/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ml5js/ml5-examples","description":"A collection of ml5.js examples","fork":false,"url":"https://api.github.com/repos/ml5js/ml5-examples","forks_url":"https://api.github.com/repos/ml5js/ml5-examples/forks","keys_url":"https://api.github.com/repos/ml5js/ml5-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ml5js/ml5-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ml5js/ml5-examples/teams","hooks_url":"https://api.github.com/repos/ml5js/ml5-examples/hooks","issue_events_url":"https://api.github.com/repos/ml5js/ml5-examples/issues/events{/number}","events_url":"https://api.github.com/repos/ml5js/ml5-examples/events","assignees_url":"https://api.github.com/repos/ml5js/ml5-examples/assignees{/user}","branches_url":"https://api.github.com/repos/ml5js/ml5-examples/branches{/branch}","tags_url":"https://api.github.com/repos/ml5js/ml5-examples/tags","blobs_url":"https://api.github.com/repos/ml5js/ml5-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ml5js/ml5-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ml5js/ml5-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/ml5js/ml5-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ml5js/ml5-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/ml5js/ml5-examples/languages","stargazers_url":"https://api.github.com/repos/ml5js/ml5-examples/stargazers","contributors_url":"https://api.github.com/repos/ml5js/ml5-examples/contributors","subscribers_url":"https://api.github.com/repos/ml5js/ml5-examples/subscribers","subscription_url":"https://api.github.com/repos/ml5js/ml5-examples/subscription","commits_url":"https://api.github.com/repos/ml5js/ml5-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/ml5js/ml5-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/ml5js/ml5-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/ml5js/ml5-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/ml5js/ml5-examples/contents/{+path}","compare_url":"https://api.github.com/repos/ml5js/ml5-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ml5js/ml5-examples/merges","archive_url":"https://api.github.com/repos/ml5js/ml5-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ml5js/ml5-examples/downloads","issues_url":"https://api.github.com/repos/ml5js/ml5-examples/issues{/number}","pulls_url":"https://api.github.com/repos/ml5js/ml5-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/ml5js/ml5-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/ml5js/ml5-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ml5js/ml5-examples/labels{/name}","releases_url":"https://api.github.com/repos/ml5js/ml5-examples/releases{/id}","deployments_url":"https://api.github.com/repos/ml5js/ml5-examples/deployments","created_at":"2018-03-06T00:35:48Z","updated_at":"2018-11-23T16:41:38Z","pushed_at":"2018-11-25T04:21:39Z","git_url":"git://github.com/ml5js/ml5-examples.git","ssh_url":"git@github.com:ml5js/ml5-examples.git","clone_url":"https://github.com/ml5js/ml5-examples.git","svn_url":"https://github.com/ml5js/ml5-examples","homepage":"https://ml5js.org/docs/quick-start","size":412101,"stargazers_count":179,"watchers_count":179,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":76,"open_issues":19,"watchers":179,"default_branch":"master"}},"base":{"label":"ml5js:master","ref":"master","sha":"1f80dfb70c11c0c0e23e027ad5474effa69897e9","user":{"login":"ml5js","id":36965392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2OTY1Mzky","avatar_url":"https://avatars2.githubusercontent.com/u/36965392?v=4","gravatar_id":"","url":"https://api.github.com/users/ml5js","html_url":"https://github.com/ml5js","followers_url":"https://api.github.com/users/ml5js/followers","following_url":"https://api.github.com/users/ml5js/following{/other_user}","gists_url":"https://api.github.com/users/ml5js/gists{/gist_id}","starred_url":"https://api.github.com/users/ml5js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml5js/subscriptions","organizations_url":"https://api.github.com/users/ml5js/orgs","repos_url":"https://api.github.com/users/ml5js/repos","events_url":"https://api.github.com/users/ml5js/events{/privacy}","received_events_url":"https://api.github.com/users/ml5js/received_events","type":"Organization","site_admin":false},"repo":{"id":123997353,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM5OTczNTM=","name":"ml5-examples","full_name":"ml5js/ml5-examples","private":false,"owner":{"login":"ml5js","id":36965392,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2OTY1Mzky","avatar_url":"https://avatars2.githubusercontent.com/u/36965392?v=4","gravatar_id":"","url":"https://api.github.com/users/ml5js","html_url":"https://github.com/ml5js","followers_url":"https://api.github.com/users/ml5js/followers","following_url":"https://api.github.com/users/ml5js/following{/other_user}","gists_url":"https://api.github.com/users/ml5js/gists{/gist_id}","starred_url":"https://api.github.com/users/ml5js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml5js/subscriptions","organizations_url":"https://api.github.com/users/ml5js/orgs","repos_url":"https://api.github.com/users/ml5js/repos","events_url":"https://api.github.com/users/ml5js/events{/privacy}","received_events_url":"https://api.github.com/users/ml5js/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ml5js/ml5-examples","description":"A collection of ml5.js examples","fork":false,"url":"https://api.github.com/repos/ml5js/ml5-examples","forks_url":"https://api.github.com/repos/ml5js/ml5-examples/forks","keys_url":"https://api.github.com/repos/ml5js/ml5-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ml5js/ml5-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ml5js/ml5-examples/teams","hooks_url":"https://api.github.com/repos/ml5js/ml5-examples/hooks","issue_events_url":"https://api.github.com/repos/ml5js/ml5-examples/issues/events{/number}","events_url":"https://api.github.com/repos/ml5js/ml5-examples/events","assignees_url":"https://api.github.com/repos/ml5js/ml5-examples/assignees{/user}","branches_url":"https://api.github.com/repos/ml5js/ml5-examples/branches{/branch}","tags_url":"https://api.github.com/repos/ml5js/ml5-examples/tags","blobs_url":"https://api.github.com/repos/ml5js/ml5-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ml5js/ml5-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ml5js/ml5-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/ml5js/ml5-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ml5js/ml5-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/ml5js/ml5-examples/languages","stargazers_url":"https://api.github.com/repos/ml5js/ml5-examples/stargazers","contributors_url":"https://api.github.com/repos/ml5js/ml5-examples/contributors","subscribers_url":"https://api.github.com/repos/ml5js/ml5-examples/subscribers","subscription_url":"https://api.github.com/repos/ml5js/ml5-examples/subscription","commits_url":"https://api.github.com/repos/ml5js/ml5-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/ml5js/ml5-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/ml5js/ml5-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/ml5js/ml5-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/ml5js/ml5-examples/contents/{+path}","compare_url":"https://api.github.com/repos/ml5js/ml5-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ml5js/ml5-examples/merges","archive_url":"https://api.github.com/repos/ml5js/ml5-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ml5js/ml5-examples/downloads","issues_url":"https://api.github.com/repos/ml5js/ml5-examples/issues{/number}","pulls_url":"https://api.github.com/repos/ml5js/ml5-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/ml5js/ml5-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/ml5js/ml5-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ml5js/ml5-examples/labels{/name}","releases_url":"https://api.github.com/repos/ml5js/ml5-examples/releases{/id}","deployments_url":"https://api.github.com/repos/ml5js/ml5-examples/deployments","created_at":"2018-03-06T00:35:48Z","updated_at":"2018-11-23T16:41:38Z","pushed_at":"2018-11-25T04:21:39Z","git_url":"git://github.com/ml5js/ml5-examples.git","ssh_url":"git@github.com:ml5js/ml5-examples.git","clone_url":"https://github.com/ml5js/ml5-examples.git","svn_url":"https://github.com/ml5js/ml5-examples","homepage":"https://ml5js.org/docs/quick-start","size":412101,"stargazers_count":179,"watchers_count":179,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":76,"open_issues":19,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78"},"html":{"href":"https://github.com/ml5js/ml5-examples/pull/78"},"issue":{"href":"https://api.github.com/repos/ml5js/ml5-examples/issues/78"},"comments":{"href":"https://api.github.com/repos/ml5js/ml5-examples/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/ml5js/ml5-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ml5js/ml5-examples/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/ml5js/ml5-examples/statuses/4afc31f3c271822a72e55497f1c1f9b1305e8581"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"shiffman"}}