Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.03 KB

Project Overview:

Clothing Scanner is a wrapper function that scans an image of clothing and returns shopping links to similar items. It uses the Google Lens API from SerpAPI to support the scan. It's meant to be a backend funciton, but it can also be demoed using streamlit.

Setup:

Clone the repository

git clone https://github.com/alexanderchen750/fit-scanner.git

Setup .env file:

Create a .env in your repository. You will need a SERPAPI_KEY, and a link to images that are uploaded, I'm using a s3 bucket. Make sure to replace with you keys.

SERPAPI_KEY=key
AWS_ACCESS_KEY_ID=id
AWS_SECRET_ACCESS_KEY=key
S3_BUCKET_NAME=key
AWS_REGION=region

Python Venv

Create a virtual enviroment in Python

python3 -m venv venv

Activate enviroment

source venv/bin/activate

Install dependencies

pip install streamlit boto3 python-dotenv serpapi

Running:

Make sure your in the folder function in command line, then to run the demo, use

streamlit run demo.py