Project Name: FaceDetectTessel2 for NTUEE ESLab HW2
Author: Li-Wei Chen, Ya-Liang Chang
Using Tessel2, USB camera, opencv, and socket.io to implement realtime face detection.
Please see the report for implementation details.
-
Install dependencies
git clone https://github.com/b04901014/FaceDetectTessel2.git cd FaceDetectTessel2 npm install t2 init cd client npm install
-
Connect the Tessel2 to your computer and USB camera to Tessel2.
-
Connect to the Tessel2 using Wifi
t2 wifi -n <SSID> -p <PWD> -s <PWD encryption>
-
Get access to the access point of the Tessel2
t2 ap -n ${tessel name} t2 provision
Then check the ip address by ifconfig (inet addr of wlp2s0). It should be something like 192.168.1.xxx.
-
Change the ip address to the corresponding one for the server.js and camera.js, also you can choose a port of your favor.
cd ../ node server.js t2 run camera.js
-
Run react
cd client npm start
Note the green LED will blink as the camera detects faces.