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

Question - matFromImageData returning empty Object #25

Open
davidmarquesm opened this issue Jan 31, 2024 · 0 comments
Open

Question - matFromImageData returning empty Object #25

davidmarquesm opened this issue Jan 31, 2024 · 0 comments

Comments

@davidmarquesm
Copy link

davidmarquesm commented Jan 31, 2024

Hi, I've started using this lib on node.js and I'm facing the following issue:

let srcImage = await Jimp.read('./image.png') let src = cv.matFromImageData(srcImage.bitmap)
src is returning an empty Mat object

the srcImage.bitmap values are:
{ width: 278, height: 155, depth: 8, interlace: false, palette: false, color: true, alpha: true, bpp: 4, colorType: 6, data: <Buffer eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb eb ff eb eb ... 172310 more bytes>, gamma: 0 }

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