2017 © Pedro Peláez
 

library face

A package to check human appearance score

image

hanson/face

A package to check human appearance score

  • Thursday, November 16, 2017
  • by hanson
  • Repository
  • 5 Watchers
  • 130 Stars
  • 193 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 34 Forks
  • 0 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

face

face 是基于微软小冰接口的颜值检测工具, (*1)

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

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 颜值分数

, (*3)

Bill 请吃饭

, (*4)

, (*5)

Relation 关系

, (*6)

Clothing 穿衣风格

, (*7)

The Versions

16/11 2017

dev-master

9999999-dev

A package to check human appearance score

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hanson

16/11 2017

2.0.2

2.0.2.0

A package to check human appearance score

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hanson

09/09 2017

2.0.1

2.0.1.0

A package to check human appearance score

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hanson

09/09 2017

2.0.0

2.0.0.0

A package to check human appearance score

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hanson

10/04 2017

v1.0.0

1.0.0.0

A package to check human appearance score

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar hanson