Skip to content

Get a list back of barbies that match the code that was taken in the picture

Notifications You must be signed in to change notification settings

brandon-braner/barbie_mini_scanner

Repository files navigation

Barbie Scanner

A web application that uses AI vision to identify different types of Barbie dolls from photos. Simply take a picture of a Barbie doll, and the app will analyze it to tell you which Barbie it is.

Features

  • 📸 Real-time camera access using device's camera
  • 🤖 AI-powered Barbie identification
  • 📱 Mobile-friendly responsive design
  • 🖼️ Image preview before submission
  • ✨ Clean and intuitive user interface

How It Works

  1. Take a Picture:

    • Open the app in your browser
    • Grant camera permissions when prompted
    • Position your code in frame
    • Click the "Take Picture" button
    • Review the captured image
  2. AI Analysis:

    • The captured image is securely sent to our AI vision model
    • The model analyzes the image to identify the product code
    • Results are returned within seconds
  3. View Results:

    • See detailed information about the identified Barbie
    • Results include the type of Barbie and other relevant details
    • Take another picture to scan a different Barbie

Technology Stack

  • Frontend: Next.js 13+ with React
  • Styling: Tailwind CSS
  • Camera Interface: Web APIs (getUserMedia)
  • AI Vision: Advanced image recognition model

Getting Started

  • Clone the repository:

    git clone https://github.com/yourusername/barbie-scanner.git
  • Install dependencies:

    cd barbie-scanner
    npm install
  • Install Ollama https://ollama.com/

  • Run llama 3.2-vision model

    ollama run llama3.2-vision
  • Run the development server:

    npm run dev:https
  • Open https://localhost:3000 in your browser

Building Docker Image

docker build -t barbie-scanner .

Requirements

  • Modern web browser with camera access
  • Camera permissions enabled
  • JavaScript enabled
  • Internet connection for AI model access

Privacy

  • Images are processed securely and not stored permanently
  • Camera access is only used when taking pictures
  • No personal data is collected or stored

Contributing

Feel free to contribute to this project by submitting issues or pull requests. All contributions are welcome!

License

MIT License - feel free to use this project for your own purposes.

About

Get a list back of barbies that match the code that was taken in the picture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published