yuvToMat icon indicating copy to clipboard operation
yuvToMat copied to clipboard

Clip function not found on YuvImage

Open jcklie opened this issue 6 years ago • 0 comments

Thanks for this awesome project (and of course the OpenCV package for gradle)! This really saved me so much trouble. I can convert my images to Mats, but when I try to use the clipping, then for

val yuv = YuvImage(image).clip(left=20, top=20, right=40, bottom=40)

I get a compile error saying

Expression 'YuvImage' of type 'YuvImage.Factory' cannot be invoked as a function. The function 'invoke()' is not found

My versions:

ext.kotlin_version = '1.3.50'
implementation "com.quickbirdstudios:yuvtomat:1.1.0"
implementation 'com.quickbirdstudios:opencv:4.1.0'

Do you have an idea what happens there?

jcklie avatar Aug 30 '19 22:08 jcklie