Face detect and IOT data display, use for face recognized and return their info to display.
The brief introduction of optional stroke
- 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
-
use own aliyun face api apikey
-
run emitter and mysql in face/mysql&emitter
-
run face api model file host in weights
cd weights && go run file.go
- run frontend
cd face/frontend
npm install
npm start
- run backend mysql database with egg js
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
at top of face/sequelize/app/controller/image.js
- 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
- UmiJS for umi create
- npm / yarn for bag control
- emitter for date transmission
- Localstorage
- Ant Design Pro for page design
- GitHub for components