Skip to content

samuelng87/face-recognition-brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Analysis Web App with GPT-4o Vision

Modernized a legacy face detection application into a full-featured image analysis tool using React JS with Tachyons styling. The updated application leverages cutting-edge AI capabilities through Puter.ai's GPT-4o Vision API integration.

Key Features

  • Redesigned the UI with a responsive flex layout that displays images alongside AI-generated analysis
  • Integrated Puter.ai's GPT-4o Vision for comprehensive image analysis beyond just face detection
  • Implemented robust error handling for various image URL formats with specific attention to problematic Google thumbnail URLs
  • Created an intuitive user experience with loading indicators, scrollable analysis content, and responsive design for different screen sizes
  • Added detailed validation and feedback mechanisms for image URLs to enhance user experience

Technical Highlights

  • Built with React JS, featuring functional components and React Hooks (useState)
  • Implemented async/await patterns with Promise handling for API interactions
  • Created custom CSS with flex layouts, responsive design principles, and modern aesthetic
  • Enhanced error handling with comprehensive validation and user feedback
  • Used intelligent response parsing to extract meaningful content from JSON API responses

How to Use

  1. Enter an image URL in the input field
  2. Click "Analyze" to process the image
  3. View the image and its detailed analysis side by side
  4. For best results, use direct image URLs that end with .jpg, .jpeg, .png, or .gif

Example URLs to Try

Notes

  • Avoid using Google thumbnail URLs that contain "encrypted-tbn" as they often cause issues
  • The application will provide detailed error messages if the image URL cannot be analyzed

Getting Started

# Clone the repository
git clone <repository-url>

# Install dependencies
npm install

# Start the development server
npm start

The application demonstrates modern front-end development practices, advanced API integration techniques, and user-centered design principles. Users can analyze any image URL to receive detailed AI-powered descriptions of content, people, objects, scenes, colors, and text visible in the images.

Releases

No releases published

Packages

No packages published