MANASA-NUKALA/label-vision
Label Vision
Label Vision is a mobile application that scans product labels and provides information using voice assistance.
The project consists of:
React Native (Expo) Mobile App
FastAPI Backend
PostgreSQL Database
Project Structure
label-vision
├── backend → FastAPI + PostgreSQL
└── create-anything/_/apps/mobile → React Native App
Backend Setup
-
Go to backend folder
cd backend -
Create virtual environment
python -m venv venv
venv\Scripts\activate -
Install dependencies
pip install -r requirements.txt -
Configure environment variables
Create .env file and add:
DATABASE_URL=postgresql://postgres:password@localhost:5432/label_vision
SECRET_KEY=your-secret-key
DEBUG=True
-
Initialize database
python init_db.py -
Run backend server
python main.py
Backend runs on:
PostgreSQL Setup
Install PostgreSQL
Create database:
label_vision
Update database URL in .env
Mobile App Setup (React Native Expo)
-
Go to mobile folder
cd create-anything/_/apps/mobile -
Install dependencies
npm install -
Set API URL
Create .env or add in config:
EXPO_PUBLIC_API_URL=http://YOUR_PC_IP:8000
Example:
EXPO_PUBLIC_API_URL=http://192.168.0.16:8000
- Start mobile app
npx expo start
Scan QR using Expo Go.
Features Implemented
FastAPI backend with structured API routes
PostgreSQL database integration using SQLAlchemy
Authentication APIs
File upload API
Scan history APIs
CORS configuration for mobile app
React Native connected to backend using API URL