title: Best way to render OpenCV Mat to Html5 Canvas?
body: <p>I am using node.js and electron to build a desktop application. I want to use OpenCV with it. I successfully installed opencv4nodejs and now I want cv.Mat to be rendered in HTML5 Canvas. Is it possible to do it directly, or I have to save the image and then render it.</p>
  
  <p>The one more problem is that opencv4nodejs works well in node.js console, but it doesn't work with electron it gives me error:</p>
  
  <pre><code>Uncaught Error: The system cannot find message text for message number 0x%1 in the message file for %2. Electron_ASAR.js
  \\?\D:\Mohit\Projects\Devide\node_modules\opencv4nodejs\build\Release\opencv4nodejs.node
      at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
      at Object.Module._extensions..node (module.js:598:18)
      at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
      at Module.load (module.js:503:32)
      at tryModuleLoad (module.js:466:12)
      at Function.Module._load (module.js:458:3)
      at Module.require (module.js:513:17)
      at require (internal/module.js:11:18)
      at Object.&lt;anonymous&gt; (D:\Mohit\Projects\Devide\node_modules\opencv4nodejs\lib\opencv4nodejs.js:13:8)
      at Object.&lt;anonymous&gt; (D:\Mohit\Projects\Devide\node_modules\opencv4nodejs\lib\opencv4nodejs.js:31:3)
  </code></pre>