Skip to content

Instantly share code, notes, and snippets.

@btsimonh
Created November 5, 2017 11:59
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/e5b6f2e29865ab1f6b771116a04c9eeb to your computer and use it in GitHub Desktop.
Save btsimonh/e5b6f2e29865ab1f6b771116a04c9eeb to your computer and use it in GitHub Desktop.
node-opencv-with-node-red-global
[
{"id":"2bf57a6b.38db16","type":"inject","z":"ad55a124.f98ef","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"x":190,"y":60,"wires":[["84863181.1b938"]]},
{"id":"84863181.1b938","type":"function","z":"ad55a124.f98ef","name":"LoadCV","func":"var require = global.get('require');\nvar cv = require.main.require('opencv');\nvar cvdesc = util.inspect(cv);\nnode.send({payload:cvdesc});\nflow.set('cv', cv);\nreturn msg;","outputs":"1","noerr":0,"x":320,"y":60,"wires":[["71fa0b4.c0bebf4"]]},
{"id":"71fa0b4.c0bebf4","type":"debug","z":"ad55a124.f98ef","name":"","active":true,"console":"false","complete":"false","x":470,"y":60,"wires":[]}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment