Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mat's default constructor issue #2

Open
NoxFly opened this issue Oct 5, 2022 · 0 comments
Open

Mat's default constructor issue #2

NoxFly opened this issue Oct 5, 2022 · 0 comments

Comments

@NoxFly
Copy link

NoxFly commented Oct 5, 2022

NodeJs v16.17.1
npm v8.19.2

OS: Ubuntu 22.04

On a new empty project.
OpenCV previously installed.

import cv from '@anpanman/opencv_ts';
import { PNG } from 'pngjs';

const mat = new cv.Mat();

Results in :

TypeError: opencv_ts_1.default.Mat is not a constructor

Also, trying to get the webcam's mat. How to get it ? No docs. default opencv code would be

const webcam = new cv.VideoCapture(0);
const frame = new cv.Mat();
webcam.read(frame);
// ...

But VideoCapture does not exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant