We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sorry for the dumb question im new to this. does this lib work with java?
The text was updated successfully, but these errors were encountered:
You should use a kotlin class with a wrapper
Something like this:
private suspend fun segmentSubject( inputBitmap: Bitmap, listener: SegmentResultListener ) { mBgRemover.clearBackground(inputBitmap).collect { output -> listener.onSuccess(output) } } fun segmentSubjectFromJava(inputBitmap: Bitmap, listener: SegmentResultListener) { CoroutineScope(Dispatchers.IO).launch { try { segmentSubject(inputBitmap, listener) } catch (e: Exception) { listener.onFail(e) } } }
Sorry, something went wrong.
No branches or pull requests
sorry for the dumb question im new to this.
does this lib work with java?
The text was updated successfully, but these errors were encountered: