Skip to content

A full stack MERN application featuring Clarifai's API to recognize faces from images and detect their precise location on the image.

Notifications You must be signed in to change notification settings

harrisgomez/autoseek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's jump right into it

  1. Clone the repo onto your local.

  2. Sign up for a free API Key here Clarifai API.

  3. Once you have your API Key, you can either:

    • Create a .env file in the /client directory and include it there by adding

      REACT_APP_CLARIFAI_KEY="<YOUR_API_KEY_HERE>"

      OR

    • Insert it into the Clarifai instance directly in /client/src/actions/action-creators.js

      export const clarifaiApp = new Clarifai.App({
         apiKey: "<YOUR_API_KEY_HERE>"
      });

Available Scripts

npm i

Installs the project's server-side dependencies.

npm start

Runs only the server. Uses port 8000.

npm run server

Alternatively, if you have the nodemon package installed, this will also run the server and reload it when you make edits.

npm run client

Runs only the client.

npm run dev

Must have the concurrently package installed. This will run both server and client at the same time.


How it works

After everything is up and running, go to your localhost/3000.

In development, the app uses the browser's local storage for registering new users and signing in existing ones.

Successfully registering a fake account or signing into an existing one should redirect you to the homepage.

At the homepage there will be an input that accepts image URLs and renders the image dynamically.

Clicking the Detect button makes a call to the Clarifai API's facial detection model and the app will render a box where the face is located.

Now try using an image with multiple faces and see what happens! Push the limits and see how well it performs across different images.

About

A full stack MERN application featuring Clarifai's API to recognize faces from images and detect their precise location on the image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published