Legoless / LegoCV

Native OpenCV Swift Framework
https://github.com/legoless/legocv
Other
190 stars 27 forks source link

How to convert CVPixelBuffer to Mat? #7

Closed anonym24 closed 6 years ago

anonym24 commented 6 years ago

How to convert CVPixelBuffer to Mat?

anonym24 commented 6 years ago

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 commented 6 years ago

here more details https://github.com/Legoless/LegoCV/issues/8