Smart Brain is an application built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. The purpose of this application is to detect and recognize faces within images using the advanced face recognition capabilities provided by the Clarifai API. The application utilizes the Clarifai API's face detection model to accurately identify and locate faces within the provided images, providing precise bounding box coordinates for each detected face.
To run the web application locally, you need to have Node.js installed on your device. Once installed, follow these steps:
-
Clone the repository:
git clone https://github.com/Harshdev625/Face-Recognition-Brain
-
Create an account on the Clarifai API.
-
Create a
.env
file in the root folder. -
In the
.env
file, create the following variables:REACT_APP_API_PAT='Your API Key'
REACT_APP_API_USER_ID_NAME='Your API Username'
REACT_APP_USER_APP='Your API App Name'
REACT_APP_SERVER='http://localhost:3000'
Replace
'Your API Key'
,'Your API Username'
, and'Your API App Name'
with your actual API key, API username, and your app name respectively. If your server is deployed elsewhere, replace'http://localhost:3000'
with the URL of your deployed server. -
Now you are ready to start running the application. Use the following commands:
npm install npm run start
-
Smart Brain is now running on localhost.
-
For Backend visit Face-Recognition-Brain-Backend-Mongo
-
Find a Picture of a Person and 'Copy the image address'.
-
Paste the Image Address into the white textbox (in the middle of the screen) and Click the 'Detect' Button
-
Watch the facial recognition box appear over the person like magic.
Face.Recognition.Brain.mp4
Contributions to the Smart Brain application are welcome! If you encounter any bugs or issues or have ideas for enhancements, please open an issue on the repository. Additionally, pull requests with improvements are highly appreciated.
(If you liked the project, give it a star 😃)