diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 71 |
1 files changed, 37 insertions, 34 deletions
@@ -121,35 +121,7 @@ The command **libcamera-jpeg** will capture a still image using the camera modul **Test image taken by Raspberry Pi Camera Module** (Click on it for full-size) -## 5. Install dependencies and test the LCD1602 LCD Display with I2C - -1. Install the libraries and i2cctools package -```bash -sudo apt install i2c-tools libi2c-dev -``` -2. Enter the lcd-ipaddress-display subdirectory in this project -```bash -cd lcd-ipaddress-display -``` -3. Install python modules `smbus` and `RPi.GPIO` to communicate with I2C devices using python scripts -```bash -pip install smbus RPi.GPIO -``` -OR -```bash -pip install -r requirements.txt -``` -4. Execute the python script to display Local IP Address: -```bash -python dispip.py -``` -**Note:** The python script will only work correctly when it is located in the lcd-ipaddress-display directory, as the drivers directory is imported in the code as a library. - -<img src="media/lcddisplay-test.jpg" alt="Test image of LCD display showing the Local IP Address"> - -**Test image of LCD display in the setup showing the Local IP Address** - -## 6. Testing the Face-Recognition Application +## 5. Testing the Face-Recognition Application To test the camera for the application, follow these steps: @@ -179,7 +151,11 @@ source .venv/bin/activate ``` bash pip install -r requirements.txt ``` - +*Note!* Picamera2 is recommended to install using apt. Hence, till it's stable version is not released it won't be included in requirements.txt. Read more [here](https://pypi.org/project/picamera2/) +Use the following command to install Picamera2 +``` bash +sudo apt install -y python3-picamera2 +``` 6. Change to the parent directory of opencv-face-recognition. ``` bash cd .. @@ -187,13 +163,40 @@ cd .. 7. Run the "CamTest.py" script. ``` bash -python opencv-face-recognition/CamTest.py +python CamTest.py +``` +Once the script starts running, it will use the Camera Module to show the captured frames. + +8. Press 'Esc' or 'q' to quit the script. +Press Escape key or qto stop the script when you are done. + +## 6. Install dependencies and test the LCD1602 LCD Display with I2C + +1. Install the libraries and i2cctools package +```bash +sudo apt install i2c-tools libi2c-dev +``` +2. Enter the lcd-ipaddress-display subdirectory in this project +```bash +cd lcd-ipaddress-display +``` +3. Install python modules `smbus` and `RPi.GPIO` to communicate with I2C devices using python scripts +```bash +pip install smbus RPi.GPIO +``` +OR +```bash +pip install -r requirements.txt ``` -Once the script starts running, it will use your webcam to detect faces in the video feed. +4. Execute the python script to display Local IP Address: +```bash +python dispip.py +``` +**Note:** The python script will only work correctly when it is located in the lcd-ipaddress-display directory, as the drivers directory is imported in the code as a library. -8. Press 'Esc' to quit the script. -Press Escape key to stop the script when you are done. +<img src="media/lcddisplay-test.jpg" alt="Test image of LCD display showing the Local IP Address"> +**Test image of LCD display in the setup showing the Local IP Address** ## Wireless Adapter |