{
    "openapi": "3.0.0",
    "info": {
        "title": "明星图像识别 - API文档",
        "version": "1.0.0",
        "description": "支持全球近3W个明星人物的图像识别，img参数传递明星图片的base64编码（建议URLEncoder下）即可，返回信息包含明星姓名、简介、籍贯和图片等公开信息，base编码后的图片大小不超过6M。在保证图片清晰度的情况下，图片越小识别速度越快，结果也越稳定。base64编码测试工具：<a href=\"\/demo\/base64\" target=\"_blank\">图片\/base64互转<\/a>"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/scanstar\/index": {
            "post": {
                "summary": "明星图像识别",
                "tags": [
                    "明星图像识别"
                ],
                "description": "根据图像识别明星人物并返回百科介绍",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "img": {
                                        "type": "string",
                                        "example": "base64",
                                        "description": "图片base64编码（与imgurl参数二选一）"
                                    },
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "imgurl": {
                                        "type": "string",
                                        "example": "https:\/\/www.tianapi.com\/static\/img\/ocr\/ldh.jpg",
                                        "description": "图片URL地址（支持jpg\/png\/bmp格式）"
                                    }
                                },
                                "required": [
                                    "img",
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "sex": {
                                            "type": "string",
                                            "example": "男",
                                            "description": "性别"
                                        },
                                        "desc": {
                                            "type": "string",
                                            "example": "1978年刘德华入无线艺员训练班学习，毕业后任无线电视台演员......",
                                            "description": "简介"
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "刘德华",
                                            "description": "姓名"
                                        },
                                        "habit": {
                                            "type": "string",
                                            "example": "收集古董手表、绘画、书法、阅读，魔术",
                                            "description": "习惯"
                                        },
                                        "trust": {
                                            "type": "string",
                                            "example": 89,
                                            "description": "可信度，越接近100越可信"
                                        },
                                        "school": {
                                            "type": "string",
                                            "example": "啬色园可立中学",
                                            "description": "毕业学校"
                                        },
                                        "company": {
                                            "type": "string",
                                            "description": "经纪公司"
                                        },
                                        "occupation": {
                                            "type": "string",
                                            "example": "导演,演员,歌手,制片人,编剧",
                                            "description": "职业"
                                        },
                                        "nationality": {
                                            "type": "string",
                                            "example": "中国香港",
                                            "description": "国籍"
                                        },
                                        "nativePlace": {
                                            "type": "string",
                                            "example": "广东江门市新会区",
                                            "description": "籍贯"
                                        },
                                        "constellation": {
                                            "type": "string",
                                            "example": "天秤座",
                                            "description": "星座"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "sex": "男",
                                                "desc": "1978年刘德华入无线艺员训练班学习，毕业后任无线电视台演员。先后主演过电视连续剧香港八一(1981)饰倪剑声，英雄出少年(1981)饰少林俗家弟子，江湖再现(1981)饰阿龙，戏班小子(1982)饰云开，花艇小英雄(1982)饰钱日添，苏乞儿(1982)饰铁豪，猎鹰(1982)饰江大伟，奔向太阳(1983)饰李志豪，临岐之决(1983)饰马日明，老洞(1983)饰谢尚楚，神雕侠侣(1983)饰杨过，鹿鼎记(1984)饰康熙，魔域桃源(1984)饰傅青云...",
                                                "name": "刘德华",
                                                "habit": "收集古董手表、绘画、书法、阅读，魔术",
                                                "school": "啬色园可立中学",
                                                "company": "",
                                                "occupation": "导演,演员,歌手,制片人,编剧",
                                                "nationality": "中国香港",
                                                "nativePlace": "广东江门市新会区",
                                                "constellation": "天秤座"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}