You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/readme.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,17 @@
4
4
5
5
*To run this project, you will most likely need to be in the Professor's office, as our demo will be using our Raspberry Pi device.*
6
6
1. The first step of running our project is to turn on and connect the Raspberry Pi to the wifi, screen, camera, and light. *If you're using our setup, you only need to connect to the wifi, and connect the light to any power source through a micro-USB. Follow the steps outlined [here](#connecting-the-pi-and-the-light-to-the-same-network) to connect*
7
-
2. Once the Raspberry Pi is connected and configured, navigate to the `app` subfolder of the `Project-Intelligest-Smart-Home` repository.
7
+
2. In the root directory, enable the virtual environment with `source venv/bin/activate`
8
+
3. In the `Models` directory, install the requirements with `pip install -r requirements.txt`. *You may need to install additional requirements that don't install due to unknown issues with the requirments file, manually install them with `pip install opencv-python`, `pip install flask`, `pip install requests`, `pip install mediapipe`*
9
+
5. Once the Raspberry Pi is connected and configured, navigate to the `app` subfolder of the `Project-Intelligest-Smart-Home` repository.
8
10
This can be done using the `cd` command if you are using the terminal and have opened the repository
9
-
3. Once in the `app` subfolder, run the command `python -m flask run` to start the program. The program should take a few seconds to start up.
10
-
4. Once the program has output the link to the flask server, open the link in a web browser.
11
-
5. The web page should display a live feed from the camera, and the program should be running.
12
-
6. To test the program, make a thumbs up, thumbs down, and thumbs flat gesture to make sure the model is correctly detecting gestures.
13
-
7. After this test, hold your index finger up for the camera until the gesture is detected as your first gesture.
14
-
8. Next, hold a thumbs-up gesture in front of the camera. After this gesture has been held for a few seconds, the web page should show the gestures you used.
15
-
9. Once these gestures are detected, the light should turn on through the home assistant API.
11
+
6. Once in the `app` subfolder, run the command `python -m flask run` to start the program. The program should take a few seconds to start up.
12
+
7. Once the program has output the link to the flask server, open the link in a web browser and enter full-screen mode.
13
+
8. The web page should display a live feed from the camera, and the program should be running.
14
+
9. To test the program, make a thumbs up, thumbs down, and thumbs flat gesture to make sure the model is correctly detecting gestures.
15
+
10. After this test, hold your index finger up for the camera until the gesture is detected as your first gesture.
16
+
11. Next, hold a thumbs-up gesture in front of the camera. After this gesture has been held for a few seconds, the web page should show the gestures you used.
17
+
12. Once these gestures are detected, the light should turn on through the home assistant API.
16
18
17
19
## Connecting the Pi and the Light to the Same Network
18
20
With Home Assistant, any devices in the system _must_ be connected to the same network as the device running Home Assistant. For demo and testing purposes, you will need to host this network yourself.
0 commit comments