Make the 'Guardian always asshole' high
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo Initial commit Jan 11, 2015
test Initial commit Jan 11, 2015
.gitignore Initial commit Jan 11, 2015
LICENSE Initial commit Jan 11, 2015
README.md Modify README.md Jan 11, 2015
facepp.py Initial commit Jan 11, 2015
facepp_inside.png Initial commit Jan 11, 2015
guardian.cfg Initial commit Jan 11, 2015
guardian.py Initial commit Jan 11, 2015
requirements.txt Initial commit Jan 11, 2015

README.md

Guardian 光腚·总菊

Introduction 介绍

This app will definitely make the 'Guardian always asshole' happy.

为响应国家号召,创造文明社会,将影像胸部及以下部分彻底截掉。

Demonstration 示例

1.png

2.png

3.png

How To 用法

Simple Usage

  1. Sign up or use your existing Face++ account.
  2. Create a Face++ App.
  3. Copy the API Key and API Secret into guardian.cfg (see below)
  4. You can switch to use the server in China mainland (Aliyun) by uncommenting # SERVER = "http://api.cn.faceplusplus.com/".
  5. Install the requirements by simply run sudo pip install -r requirements.txt.
  6. Run python guardian.py test/* to test or run with your own images python guardian.py your_image.jpg.
API_KEY = "<your face++ api key here>"
API_SECRET = "<your face++ api secret here>"

简单用法

  1. 注册登录 Face++ 账号
  2. 创建一个 Face++ App
  3. 拷贝API KeyAPI Secretguardian.cfg(见下方)
  4. 你可以去掉# SERVER = "http://api.cn.faceplusplus.com/"的注释以使用位于中国大陆的Face++的服务器(阿里云)
  5. 运行sudo pip install -r requirements.txt以安装所依赖的库
  6. 运行python guardian.py test/*或使用你自己的图片python guardian.py your_photo.jpg来测试
API_KEY = "<your face++ api key here>"
API_SECRET = "<your face++ api secret here>"

Advanced usage

See details in guardian.py and guardian.cfg (LAZY am I ╮(╯▽╰)╭).

进阶用法

请读代码guardian.pyguardian.cfg(懒得写了 ╮(╯▽╰)╭)

Acknowledgements 鸣谢

Face++ inside

License

The MIT License (MIT)

Copyright (c) 2015 James Liu <j@jamesliu.info>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.