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
| package main | |
| import ( | |
| "bufio" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "os" | |
| "strings" | |
| "time" |
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
| public static void main(String[] args) throws Exception { | |
| opencv_core.IplImage src = cvLoadImage("src.jpg", 0); | |
| opencv_core.IplImage tmp = cvLoadImage("tmp.png", 0); | |
| opencv_core.IplImage result = cvCreateImage(cvSize(src.width() - tmp.width() + 1, src.height() - tmp.height() + 1), IPL_DEPTH_32F, src.nChannels()); | |
| cvZero(result); | |
| // Match Template Function from OpenCV |
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
| var page = require('webpage').create(); | |
| page.viewportSize = { | |
| width: 1366, | |
| height: 768 | |
| }; | |
| var waitFor = function(testFx, onReady, onTimeout, timeOutMillis) { | |
| var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5000, | |
| start = new Date().getTime(), |