You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,12 @@ __Both HTTP and GRPC APIs are supported__
16
16
17
17
Use docker to run NSFW Sherlock
18
18
19
+
###
20
+
__UPDATE 0.0.0.4:__
21
+
22
+
Now you can use additional API, which will give you labels (Drawings, Neutral, Hentai, Porn, Sexy) and its values directly. Implemented on both Web and GRPC APIs.
23
+
For Web: /pic/labels
24
+
For GRPC: Please refer to protofile in ./proto
19
25
20
26
###
21
27
@@ -33,6 +39,24 @@ __Usage with Git Clone:__
33
39
HTTP:
34
40
docker run -e APP_ENV=http -p 4000:4000 nsfwsherlock
35
41
(POST /pic/check) req: {"base64": "base64 string of image", filename: "image.jpg"}
42
+
res: {
43
+
"status": "ok",
44
+
"message": "success",
45
+
"nsfwText": true/false,
46
+
"nsfwPic": true/false
47
+
}
48
+
49
+
(POST /pic/labels) req: {"base64": "base64 string of image", filename: "image.jpg"},
50
+
res: {
51
+
"status": "ok",
52
+
"message": "success",
53
+
"drawings": 0.0,
54
+
"hentai": 0.0,
55
+
"neutral": 0.0,
56
+
"porn": 0.0,
57
+
"sexy": 0.0,
58
+
"nsfwText": true/false,
59
+
},
36
60
37
61
---------------------------------------------
38
62
@@ -55,6 +79,24 @@ __Usage with Docker Hub:__
55
79
HTTP:
56
80
docker run -e APP_ENV=http -p 4000:4000 m1chl/nsfw-sherlock
57
81
(POST /pic/check) req: {"base64": "base64 string of image", filename: "image.jpg"}
82
+
res: {
83
+
"status": "ok",
84
+
"message": "success",
85
+
"nsfwText": true/false,
86
+
"nsfwPic": true/false
87
+
}
88
+
89
+
(POST /pic/labels) req: {"base64": "base64 string of image", filename: "image.jpg"},
0 commit comments