mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-03 22:07:26 +00:00
[Add] 初步添加成人内容检测器, 尚未使用;
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
package net.lamgc.cgj.pixiv;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@Ignore
|
||||
public class ModerateContentDetectorTest {
|
||||
|
||||
private final static AdultContentDetector acd = new ModerateContentDetector("d91b6c3fa2bba9ee8f9e68827ba0d937");
|
||||
private final static Logger log = LoggerFactory.getLogger(ModerateContentDetector.class);
|
||||
|
||||
@Test
|
||||
public void checkTest() throws Exception {
|
||||
log.info("Detect: {}, isAdult: {}",
|
||||
acd.detect(80840411, false, 0),
|
||||
acd.isAdultContent(80840411, false, 0));
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user