GithubHelp home page GithubHelp logo

coolshanlan / face-scorer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.85 MB

Face Scorer 是個臉部評分系統,由於每個人的審美觀不同,網路上現有的臉部評分器只能透過通俗的眼光給予評分,並不是按照個人喜好,因此 Face Scorer 透過 Line Bot 實現一人一model 自己訓練屬於自己的臉部評分器

Python 100.00%
linebot face-scorer face-recognition face-detection face line-bot-sdk

face-scorer's Introduction

Personal Face Scorer line Bot

Face Scorer 是個臉部評分系統,由於每個人的審美觀不同,網路上現有的臉部評分器只能透過通俗的眼光給予評分,並不是按照個人喜好,因此 Face Scorer 透過 Line Bot 實現伊人一model 自己訓練屬於自己的臉部評分器,使用我要看女/男生,Line Bot 會自動上網抓10張男/女生照片,依照使用者給的分數建構資料集,在使用請你看仔細來訓練模型,完成屬於自己的臉部評分器,最後只要上傳想評分的照片即可。

Screenshot

爬蟲建立資料集

訓練模型

照片評分

Feature

  • 我要看女生/女生(Get 10 pictures of training date)
  • 請你看仔細(Train model)
  • upload image to get the Score

Model

ResNet18

Face recognition

You can see how to use Face recognition in this repo

Line-Bot-sdk

You can find the document in this repo

How to use

Setup Imgur access token

  1. Login Imgur
  2. go to setting > Applications
  3. create new Application
  4. get Client ID and Client secret
  5. run imgurfile.getauthorize
  6. check your pin code on the display URL
  7. type pin code to get access and refresh token
  8. Write Client ID, Client secret, access token, refresh token on the top of imgurfile.py

Setup Line Message API

  • 登入自己帳號
  • 創建Message API
  • 進入 Messaging API 設定
    • Use webhook
    • 回應模式:聊天機器人
    • 加入好友歡迎訊息:停用
    • 自動回應訊息:停用

Set line_secret_key

  • secret_key : Basic setting -> Channel secret
  • channel_access_token:Messaging API -> Channel access token

ngrok

Use ngrok to setup a local server

  1. download ngrok
  2. cd to ngrok.exe Folder
  3. 輸入cmd
ngrok http 5000 -region ap
  1. copy https url and paste to Website of Messaging API -> webhook settings

How to install

Install dlib on windows

Don't use pip or conda to install dlib

  1. download whl file in https://pypi.org/simple/dlib/
  2. pip install whl file path

Install Face Recognition

You should install dlib first

and type pip install face_recognition in cmd

Requirements

pip install -r requirements.txt
python=3.6
Pillow=5.3.0
cmake
dlib
face_recognition
imgurpython
pytorch
line-bot-sdk
flask

face-scorer's People

Contributors

coolshanlan avatar

Watchers

 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.