Skip to content

opencv4nodejs inside worker threads #555

Open
@diegonc

Description

@diegonc

Using opencv4nodejs inside a worker thread causes the error message Module did not self-register.

To make it work the module must be context aware as described here.

To reproduce the little snippet below (which is based on this bug report) can be used:

$ cat > a.js << EOF
const cv = require('opencv4nodejs');
const {Worker} = require('worker_threads');
new Worker(__filename);
EOF
$ node --experimental-worker a.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions