Closed anonym24 closed 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
here more details https://github.com/Legoless/LegoCV/issues/8
How to convert CVPixelBuffer to Mat?