Code Monkey home page Code Monkey logo

face's Introduction

face

face 是基于微软小冰接口的颜值检测工具

PS:其中某些接口还有一些参数,能够定位某些tag的位置,但因过于复杂这里没有实现

Install

composer require hanson/face

Usage

<?php
$face = new \Hanson\Face\Foundation\Face();

$result = $face->score->get('https://ws2.sinaimg.cn/large/685b97a1gy1fehkmbi6hvj20u00u07ab.jpg');

/**

[
    'score' => 6.8,
    'text' => '哥们颜值才6.8分,一下让整体颜值从7.3跌到7.1ORZ',
    'url' => 'http://mediaplatform.trafficmanager.cn/image/fetchimage?key='
];

**/

Document

<?php
$face = new \Hanson\Face\Foundation\Face();

// 获取颜值实例
$instance = $face->score;

// 获取受欢迎实例
$instance = $face->popular;

// 获取关系实例
$instance = $face->relation;

// 获取请客实例
$instance = $face->bill;

// 获取时尚穿衣实例
$instance = $face->clothing;

// 获取赋诗实例
$instance = $face->poem;

// 所有实例均有一个方法 get
$result = $instance->get($url);

Achievement

Score 颜值分数

Bill 请吃饭

Popular 最受欢迎

Relation 关系

Clothing 穿衣风格

face's People

Contributors

hanson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.