Since second-hand trading becomes a current trend, there are more and more people would like to sell their own object as a second-hand good. Taking the existing shopping platforms as the examples, the sellers have to fill in all the informations about their goods by themself, which is inconvenient sometimes. Our goal is to simplify the listing process of selling second-hand shoes, and to promote the willing of putting goods on the shelf. In this project, the Info Transformation Platform can return the depreciation rates, brands, styles, and web searching results of the shoes by taking or uploading photos from users.
Build with Windows OS and Azure.
model training programs
trained-model
for web crawling
main program of the computer vision: to detect the brands of the input img
take a picture by webcam and analysize the output image
git clone https://github.com/VivianChan1998/Old-shoes.git
install and activate virtual environment (https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)
py -m pip --version
py -m pip install --user virtualenv
py -m venv env
.\env\Scripts\activate
pip install requests matplotlib pillow opencv-python
3. register the Azure portal and set up your own computer vision resource(https://portal.azure.com/)
# First create the "config_own.py" file in the "computer_vision" directory
# and then set up the parameters: JSON_DIR, SHOT_CV2_DIR, IMG_PATH, IMG_DIR
JSON_DIR = "your-own-path" # which stands for the path of the JSON directory
SHOT_CV2_DIR = "your-own-path" # which stands for the path of the images that cv2 camera shoot
IMG_PATH = "your-own-path" # which stands for the path of the to-be-analysized-image
IMG_DIR = "your-own-path" # which stands for the path of the directory where the to-be-analysized-images store
python3 main.py <your-cv-sunscription-key> <your-cv-endpoint>