This project demonstrates how to perform face recognition and emotion detection using Amazon Web Services (AWS) and Python. The application leverages the power of AWS Rekognition service to analyze facial features and emotions in images.
Before running the project, make sure you have the following:
- Python 3.x installed on your machine.
- AWS account credentials with access to the Rekognition service. If you don't have one, create a new account on the AWS website and generate access keys.
- Clone the repository or download the project files to your local machine.
- Install the required Python dependencies by running the following command in your terminal:
pip install -r requirements.txt
- Configure your AWS credentials by either setting environment variables or using the AWS CLI. Make sure the credentials provide access to the Rekognition service.
- Place the images you want to analyze in the
images
directory of the project. - Run the following command in your terminal to start the application:
streamlit run main.py
- The application will analyze the images using the AWS Rekognition service and display the recognized faces and detected emotions in the terminal.
The project can be customized according to your needs. Here are a few suggestions:
- Image Sources: You can modify the
images
directory or integrate the project with other data sources such as webcams or live video streams. - Output Format: Currently, the application displays the results in the terminal. You can modify the code to store the results in a database or generate visual reports.
- Additional Features: AWS Rekognition provides various other capabilities like age estimation, gender detection, and celebrity recognition. You can explore these features and extend the project accordingly.
- The project requires a stable internet connection to access the AWS Rekognition service.
- The accuracy of face recognition and emotion detection may vary depending on the quality of the images and the complexity of the emotions displayed.
Contributions are welcome! If you encounter any issues or have ideas for improvements, please open an issue or submit a pull request on the project's GitHub repository.
This project is licensed under the MIT License.
This project was inspired by the capabilities of AWS Rekognition and various open-source face recognition libraries.