Open dimohamdy opened 7 years ago
I found the problem is caused by image?.dims
,
if you create a image like you did, the dim
is 0,
but the Mat create by the camera feed, the dim
is 2
(lldb) po image.dims
▿ Optional<Int>
- some : 2
I current not sure why, but I'll find out later.
ok is this problem in only from loaded image ? in my real case i will convert CMSampleBuffer to UIImage did you think this will crash too ?
how i can convert CMSampleBuffer or UIImageto to OCVMat ? i try to use
but this method in processImage crash
OCVOperation.convertColor(fromSource: image, toDestination: image, with: .typeBGRA2RGBA)