This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Lib to numeric analysis and computer vision (opencv) | |
| import numpy as np | |
| import cv2 | |
| # Lib to download stuff from Web | |
| import urllib | |
| # Download the URL and save it to the specified file (change the URL for your need) | |
| urllib.urlretrieve("http://www.gunnerkrigg.com/comics/00000001.jpg", "file.jpg") | |
| # Load an color image in color | |
| img = cv2.imread('file.jpg') | |
| # Load the Cascade file, grab it from https://raw.githubusercontent.com/shantnu/FaceDetect/master/haarcascade_frontalface_default.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MacBook-Pro-de-Vilson:test-vips-buildpack vilson$ heroku run bash -a test-heroku-buildpack | |
| Running `bash` attached to terminal... lfailed | |
| ! You do not have access to the app test-heroku-buildpack. | |
| MacBook-Pro-de-Vilson:test-vips-buildpack vilson$ heroku run bash -a test-vips-buildpackRunning `bash` attached to terminal... up, run.5124 | |
| Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY) | |
| Recommending WEB_CONCURRENCY=1 | |
| ~ $ ls | |
| README bin node_modules package.json vendor | |
| ~ $ ls | |
| README bin node_modules package.json vendor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "properties": { | |
| "name": "Hello Canvas!", | |
| "id": "0489cd4be882a7b09795", | |
| "environment": { | |
| "type": "noflo-browser", | |
| "content": "<style>\nbody {\n background-color: rgb(233, 233, 233);\n}\n</style>\n\n<canvas id=\"mycanvas\" width=\"1400\" height=\"425\"></canvas>" | |
| }, | |
| "icon": "" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"saliency": {"polygon": [[357, 160], [343, 153], [310, 153], [304, 124], [288, 112], [287, 116], [270, 121], [216, 124], [186, 142], [178, 142], [172, 151], [141, 256], [101, 256], [95, 252], [94, 215], [68, 215], [48, 255], [30, 404], [68, 402], [86, 393], [127, 393], [170, 403], [204, 422], [246, 424], [248, 429], [248, 340], [256, 334], [274, 334], [281, 319], [306, 303], [313, 290], [314, 276], [336, 276], [343, 266], [388, 267], [388, 316], [370, 322], [348, 344], [336, 362], [335, 376], [325, 378], [325, 393], [379, 390], [381, 400], [381, 377], [392, 364], [392, 339], [402, 330], [402, 324], [392, 323], [392, 276], [402, 275], [402, 258], [397, 257], [397, 248], [388, 247], [388, 230], [378, 209], [348, 202], [348, 162]], "center": [201, 295], "radius": 209.134, "bounding_rect": [[30, 112], [403, 430]]}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "properties": { | |
| "name": "main", | |
| "environment": { | |
| "type": "noflo-browser", | |
| "content": "<canvas id=\"colors\" width=\"640\" height=\"100\" style=\"max-width:100%;\"></canvas>\n\n" | |
| }, | |
| "icon": "", | |
| "id": "3c0ffdf17195649a2d57" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "properties": { | |
| "name": "Hello Canvas!", | |
| "id": "0489cd4be882a7b09795", | |
| "environment": { | |
| "type": "noflo-browser", | |
| "content": "<canvas id=\"mycanvas\" width=\"200\" height=\"200\"></canvas>" | |
| }, | |
| "icon": "" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "properties": { | |
| "name": "Hello Canvas!", | |
| "id": "1319c76fe006fb34c9c9", | |
| "environment": { | |
| "type": "noflo-browser", | |
| "content": "<canvas id=\"mycanvas\" width=\"200\" height=\"200\"></canvas>" | |
| }, | |
| "icon": "" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "properties": { | |
| "name": "main", | |
| "id": "9fcd4e59bc16685eab13", | |
| "project": "molly-demo-2", | |
| "environment": { | |
| "type": "noflo-browser", | |
| "content": "<style>\n #molly {\n \tcolor: #fff;\n }\n .hide {\n \tdisplay: none;\n }\n .show {\n \tdisplay: block;\n }\n .box {\n \twidth: 200px;\n \theight: 200px;\n }\n</style>\n<div id=\"molly\">Hi, do you want to see the AI in action?</div>\n<div id=\"action\">Yes, let me see it!</div>\n<div id=\"source\">Yes, show me the source graph</div>\n<div id=\"restart\">No, take me back</div>\n<section>\n<video id=\"vid\" width=\"640\" height=\"480\" autoplay></video>\n<canvas id=\"can\" width=\"640\" height=\"480\"></canvas>\n<canvas id=\"canorig\" width=\"640\" height=\"480\"></canvas>\n</section>" | |
| }, | |
| "icon": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| With GetSaliency (Current): | |
| =========================== | |
| measuring image: 492ms | |
| ✓ should add width and height to the image (494ms) | |
| with face in article cover | |
| measuring image: 14262ms | |
| ✓ should add width and height to the image (14263ms) | |
| with remote HTTPS image | |
| measuring image: 575ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/assets/scripts/init-preorder.js b/assets/scripts/init-preorder.js | |
| index 02f2583..9ba9458 100644 | |
| --- a/assets/scripts/init-preorder.js | |
| +++ b/assets/scripts/init-preorder.js | |
| @@ -12,7 +12,7 @@ function initPreorder (product, updater) { | |
| domain = ctaConfig.domain; | |
| bucket = ctaConfig.bucket; | |
| version = ctaConfig.version; | |
| - // domain = 'http://localhost:9002'; | |
| + domain = 'https://localhost:9002'; |