// Define a global variable 'Module' with a method 'onRuntimeInitialized':
Module = {
onRuntimeInitialized() {
// this is our application:
console.log(cv.getBuildInformation())
}
}
// Load 'opencv.js' assigning the value to the global variable 'cv'
cv = require('./opencv.js')
what’s the language it use?
if is javascript, there should have var/const for declaring the variables.
that’s basic javascript. since you needed to ask, I would suggest that you learn more about it.
not even 40 minutes after posting your question here, you asked for attention to it on IRC. this forum is free of cost and run by volunteers. adjust your expectations… you are probably being paid to use OpenCV, so I understand the pressure on you to deliver answers you don’t have.