AnimeFace HTTP API

Detect anime character faces from image.
More information: http://yuiseki.net/
Contact Info: [email protected]
Version: 0.0.1
BasePath:
MIT
https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_licensel

Access

Methods

[ Jump to Models ]

Table of Contents

Default

Default

Up
get /detect.jpg
Get annotated JPEG image. (detectJpgGet)

Query parameters

url (required)
Query Parameter — URL of an image. default: null

Return type

File

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

JPEG of annotated image. File

Up
get /detect.json
Get detected anime character faces info as JSON from image. (detectJsonGet)

Query parameters

url (required)
Query Parameter — URL of an image. default: null

Return type

array[DetectionResult]

Example data

Content-Type: application/json
{
  "nose" : {
    "x" : 2,
    "y" : 4
  },
  "face" : {
    "x" : 6,
    "width" : 5,
    "y" : 1,
    "height" : 5
  },
  "mouth" : {
    "x" : 6,
    "width" : 5,
    "y" : 1,
    "height" : 5
  },
  "chin" : {
    "x" : 2,
    "y" : 4
  },
  "skin_color" : "red=0, green=0, blue=0, alpha=65535",
  "likehood" : 0,
  "eyes" : {
    "left" : {
      "x" : 2,
      "width" : 9,
      "y" : 7,
      "colors" : [ "red=0, green=0, blue=0, alpha=65535", "red=0, green=0, blue=0, alpha=65535" ],
      "height" : 3
    },
    "right" : {
      "x" : 2,
      "width" : 9,
      "y" : 7,
      "colors" : [ "red=0, green=0, blue=0, alpha=65535", "red=0, green=0, blue=0, alpha=65535" ],
      "height" : 3
    }
  },
  "hair_color" : "red=0, green=0, blue=0, alpha=65535"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Array of anime faces.

Models

[ Jump to Methods ]

Table of Contents

  1. Coordinate -
  2. DetectionResult -
  3. DetectionResult_eyes -
  4. Rectangle -
  5. RectangleColors -

Coordinate - Up

x (optional)
y (optional)

DetectionResult - Up

likehood (optional)
face (optional)
skin_color (optional)
hair_color (optional)
eyes (optional)
nose (optional)
mouth (optional)
chin (optional)

DetectionResult_eyes - Up

left (optional)
right (optional)

Rectangle - Up

x (optional)
y (optional)
width (optional)
height (optional)

RectangleColors - Up

x (optional)
y (optional)
width (optional)
height (optional)
colors (optional)