mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge pull request #59 from penguin359/master
Smoke test now uses portable file path
This commit is contained in:
commit
03a00c062f
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,4 +4,5 @@ build
|
|||||||
node_modules
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
out*.jpg
|
out*.jpg
|
||||||
|
out*.png
|
||||||
examples/*.avi
|
examples/*.avi
|
||||||
|
|||||||
@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ! -f smoke/smoketest.js ]; then
|
||||||
|
echo "Please run smoke test from the top-level folder of the repository." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
node-gyp build && echo '-- Compiled OK --
|
node-gyp build && echo '-- Compiled OK --
|
||||||
|
|
||||||
' && node smoke/smoketest.js && echo '-- Smoke Done, running tests --
|
' && node smoke/smoketest.js && echo '-- Smoke Done, running tests --
|
||||||
|
|||||||
@ -20,7 +20,7 @@ cv.readImage("/Users/peterbraden/Downloads/orl_faces/s6/10.pgm", function(e, im)
|
|||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
cv.readImage("/Users/peterbraden/Desktop/repos/node-opencv/examples/mona.png", function(e, mat){
|
cv.readImage("examples/mona.png", function(e, mat){
|
||||||
var th = mat.threshold(200, 200, "Threshold to Zero Inverted");
|
var th = mat.threshold(200, 200, "Threshold to Zero Inverted");
|
||||||
th.save('out.png')
|
th.save('out.png')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user