by crc

AI Eye 1.1

Test this app for free
86
import logging
from gunicorn.app.base import BaseApplication
from app_init import create_initialized_flask_app

# Flask app creation should be done by create_initialized_flask_app to avoid circular dependency problems.
app = create_initialized_flask_app()

# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

class StandaloneApplication(BaseApplication):
    def __init__(self, app, options=None):
        self.application = app
        self.options = options or {}
        super().__init__()

    def load_config(self):
        # Apply configuration to Gunicorn
        for key, value in self.options.items():
            if key in self.cfg.settings and value is not None:
                self.cfg.set(key.lower(), value)

    def load(self):
Get full code

AI Eye 1.1

Created: | Last Updated:

Web app for blind users to navigate by capturing images with a single button, utilizing AI for image description and text-to-speech conversion.

Here's a step-by-step guide for using the AI Eye 1.1 template:

Introduction

AI Eye 1.1 is a web application designed to assist blind users in navigating their environment. It uses a simple interface with a single button to capture images, which are then analyzed by AI to provide detailed descriptions. These descriptions are converted to speech, allowing users to understand their surroundings better.

Getting Started

  1. Click "Start with this Template" to begin using the AI Eye 1.1 template in the Lazy Builder interface.

Initial Setup

Before testing the app, you need to set up an environment secret:

  1. Navigate to the Environment Secrets tab in the Lazy Builder.
  2. Add a new secret with the key OPENAI_API_KEY.
  3. To get the value for this key:
  4. Go to the OpenAI website (https://openai.com/).
  5. Sign up or log in to your account.
  6. Navigate to the API section.
  7. Generate a new API key.
  8. Copy the API key and paste it as the value for OPENAI_API_KEY in the Lazy Builder.

Testing the App

  1. Click the "Test" button in the Lazy Builder interface to deploy the application.
  2. Wait for the deployment process to complete.

Using the App

Once the app is deployed, you'll receive a dedicated server link to access the web application. Here's how to use it:

  1. Open the provided link in a web browser on a mobile device.
  2. The main interface will display a large "TAP" button in the center of the screen.
  3. To capture an image:
  4. Point the device's camera at the area you want to analyze.
  5. Tap the "TAP" button to capture the image.
  6. The app will process the image and provide an audio description of the scene.
  7. Two additional buttons are available at the bottom of the screen:
  8. "Cancel": Stops the current audio playback.
  9. "Speed": Adjusts the speech rate of the audio description.

Additional Features

  • The app supports multiple languages based on the user's device settings.
  • It includes a service worker for offline functionality and improved performance.
  • The interface is designed to be accessible and easy to use for visually impaired users.

By following these steps, you'll have a fully functional AI-powered navigation assistant for blind users. The app can be accessed through any modern web browser on a mobile device with a camera.

Technologies

Flask Flask
HTML HTML
OpenAI OpenAI
Javascript Javascript