Skip to content

Instantly share code, notes, and snippets.

@btsimonh
Created November 5, 2017 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btsimonh/1703fccf6e49a16802a7503e071d0a76 to your computer and use it in GitHub Desktop.
Save btsimonh/1703fccf6e49a16802a7503e071d0a76 to your computer and use it in GitHub Desktop.
node-opencv-with-node-red-local
[
{"id":"775a3cab.3b2814","type":"inject","z":"cbec4f4f.7908a","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"x":190,"y":140,"wires":[["36315f14.c7c18"]]},
{"id":"36315f14.c7c18","type":"function","z":"cbec4f4f.7908a","name":"LoadCV","func":"var require = global.get('require');\nvar cv = require('opencv');\nvar cvdesc = util.inspect(cv);\nnode.send({payload:cvdesc});\nflow.set('cv', cv);\nreturn msg;","outputs":"1","noerr":0,"x":320,"y":140,"wires":[["cbac4aa3.0b66d8"]]},
{"id":"cbac4aa3.0b66d8","type":"debug","z":"cbec4f4f.7908a","name":"","active":true,"console":"false","complete":"false","x":470,"y":140,"wires":[]}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment