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

How to convert CVPixelBuffer to Mat? #7

Closed
anonym24 opened this issue Jan 30, 2018 · 2 comments
Closed

How to convert CVPixelBuffer to Mat? #7

anonym24 opened this issue Jan 30, 2018 · 2 comments

Comments

@anonym24
Copy link

anonym24 commented Jan 30, 2018

How to convert CVPixelBuffer to Mat?

@anonym24
Copy link
Author

anonym24 commented Jan 30, 2018

found method, but getting error

let mat = OCVMat(pixelBuffer: pixelBuffer)
print("mat \(mat.rows) \(mat.cols)")

Output

mat 50462976 -2139086319
opencv(1751,0x16f457000) malloc: *** error for object 0x16f455f98: pointer being freed was not allocated

@anonym24
Copy link
Author

here more details #8

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