Skip to content

LiGM-GH/nsfw_java_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(Rust's NSFW detection library) adapter for Java

(I didn't come up with a pretty name. It is not a standalone tool by now, so I'm not sure if it needs its own name at all)

It is a part of ren-java-backend

How to run?

You will probably need Rust installed, see rust language installation, you'll also need java, at least, openjdk-11 on linux, as far as I could tell, then you could:

  • cargo install cargo-binstall and then cargo binstall just
  • or instead just cargo install just

Now that everything's ready, you can run

just release-daemon &
just release-java

To include this in your Java code, copy java_code/NsfwPredictor.java to your repo, compile Rust, unleash the daemon with just release-daemon, then add LD_LIBRARY_PATH which is path to your compiled .so library to env variables for your Java for it to know where to find the library.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published