The "removebg" Android library simplifies background removal from images using the U2Net model. With this library, you can quickly integrate background removal functionality into your Android app.
Original Image | Background Removed Image |
---|---|
To include "removebg" in your Android project, add the following to your Gradle files:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.erenalpaslan:removebg:1.0.4'
}
Here's a quick example of how to use the "removebg" library in your Android app:
val remover = RemoveBg(context)
remover.clearBackground(inputImage.value).collect { output ->
outputImage.value = output
}
Contributions and issue reports are welcome! Feel free to contribute to the development of this library or report any problems you encounter.