Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

abserari/projector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

projector

Face detect and IOT data display, use for face recognized and return their info to display.

The brief introduction of optional stroke

TechStack

  • antdesign pro
  • face api
  • g2 for plot
  • emitter for pubsub
  • aliyun face node sdk
  • eggjs for backserver
  • mysql for user info
  • go fileserver for file host
  • sequelize with eggjs for mysql data model

Face Usage

preview

running

cd weights && go run file.go
  • run frontend
cd  face/frontend 
npm install
npm start

create two database with egg-sequelize-doc-default egg-sequelize-doc-unittest feel free to find related file in face/sequelize/database and face/sequelize/app/model and change it when you need update user info model in mysql use npm install --save-dev sequelize-cli to install sequelize

# 升级数据库
npx sequelize db:migrate
# 如果有问题需要回滚,可以通过 `db:migrate:undo` 回退一个变更
# npx sequelize db:migrate:undo
# 可以通过 `db:migrate:undo:all` 回退到初始状态
# npx sequelize db:migrate:undo:all

cd face/sequelize 
npm install
npm run dev
  • run fileserver to have image display.
cd face/fileserver
go run fileserver.go

Config with face detect

at top of face/sequelize/app/controller/image.js

Image API

Add Image Delete Image List Image

User API

User use resultful api. Query Info

Dashboard Usage

running running

  • run frontend
cd  dashboard/frontend 
npm install
npm start
  • change the data
http://localhost:8000/submit
  • display the data
http://localhost:8000/dashboardmonitor
# we can run this project in localhost

TechStack

  • UmiJS for umi create
  • npm / yarn for bag control
  • emitter for date transmission
  • Localstorage
  • Ant Design Pro for page design
  • GitHub for components