nsfw-detector-android | Nude Content ) Detector using Firebase AutoML | Machine Learning library
kandi X-RAY | nsfw-detector-android Summary
kandi X-RAY | nsfw-detector-android Summary
[Android] NSFW(Nude Content) Detector using Firebase AutoML and TensorFlow Lite
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nsfw-detector-android
nsfw-detector-android Key Features
nsfw-detector-android Examples and Code Snippets
buildscript {
...
dependencies {
...
classpath 'com.google.gms:google-services:'
}
}
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
...
android {
...
aaptOptions {
FirebaseApp.initializeApp(context)
val bitmap: Bitmap //Image that you want to scan
val confidenceThreshold: Float //(Optional) Default is 0.7
NSFWDetector.isNSFW(bitmap,confidenceThreshold) { isNSFW, confidence, image ->
if (isNSFW){
Community Discussions
Trending Discussions on nsfw-detector-android
QUESTION
I am currently developing an app in Android Studio [using Java], and I have the challenge of preventing users from uploading nude pictures into the database. Luckily, I found this library on GitHub called NSFW(Nude Content) Detector Android.
My challenge is that it was written in Kotlin and the usage example given is also in Kotlin. I know Java and Kotlin are interoperable but I just can't figure it out after several tries.
The usage given is:
...ANSWER
Answered 2020-Oct-12 at 11:07Make sure you're using Java 8 so you have lambda support:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nsfw-detector-android
Add the JitPack repository to your build file Add it in your project build.gradle at the end of repositories:
Add nsfw-detector and rest of the firebase dependencies Add it in your app build.gradle
Run the gradle sync
Enable Firebase Please follow this documentation Make sure to add google-service.json file to your project.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page