This project was created in 3 days during CISSA CodeBrew 2024
EcoLens is an innovative mobile application designed to help users understand how to recycle different parts of objects by simply taking pictures. With EcoLens, recycling becomes more accessible and intuitive, promoting environmental sustainability in our daily lives.
- Object Recognition: Use the camera to take pictures of objects, and EcoLens will identify the object and provide recycling instructions for its parts.
- Recycling Guidance: Get detailed information on how to recycle each part of the object, promoting proper recycling practices.
- Environmentally Conscious: Encourages users to adopt eco-friendly habits by making recycling information easily accessible.
- Capture Image: Open the EcoLens app and capture a picture of an object you want to recycle.
- Object Analysis: EcoLens analyzes the image using AI computer vision models.
- Recycling Instructions: Receive detailed instructions on how to recycle each part of the object sustainably.
- React Native: EcoLens is developed using React Native framework for cross-platform compatibility.
- Expo: Utilizes Expo platform for easy development and deployment of React Native apps.
- Machine Learning: Employs OpenAIs GPT 4 Vision API for image recognition and GPT 4 Completion API for recycling guidance.
-
Clone the repository:
git clone https://github.com/BrandonWidjaja/EcoLens.git
-
Install Dependencies
cd EcoLens npm i cd api npm i
-
Create .env file in root folder. Insert the following:
API_KEY = "YOUR_OPENAI_API_KEY" EXPO_PUBLIC_MAPS_API_KEY= "YOUR_GOOGLEMAPS_API_KEY" EXPO_PUBLIC_MY_IP = "YOUR_IPV4_KEY"
-
Create a folder named 'uploads' in root folder
-
Start backend and frontend app from root folder
node api/index.js npx expo start
-
Download Expo Go on mobile device and scan the QR code in the console