Welcome to our web application designed to implement a robust Content-Based 3D Models Retrieval system that enables efficient image search and management through visual features. Users can upload, download, delete, and categorize models into predefined classes. The system computes and displays shape descriptors for models, including Zernike moments, and Fourier descriptors, in addition to viewing the model in 3D. It supports a simple search to retrieve visually similar models, providing an intuitive and dynamic way to explore the Pottery dataset.
To start off, clone this branch of the repo into your local:
git clone https://github.com/Samashi47/3D-content-retrieval.gitcd 3D-content-retrievalAfter cloning the project, create a virtual environment:
cd apps/apiWindows
py -3 -m venv .venvMacOS/Linus
python3 -m venv .venvThen, activate the env:
Windows
.venv\Scripts\activateMacOS/Linus
. .venv/bin/activateYou can run the following command to install the dependencies:
pip3 install -r requirements.txtAfter installing the dependencies, you should specify the mongodb connection string in the .env file:
touch .envor:
cp .env.example .envThen, open the .env file and add the following line:
MONGO_URL=<url>To be able to use the register and login functionalities, you need to generate jwt key and place it in a .ssh folder in the api directory:
openssl genrsa -out jwt-key 4096to extract the corresponding public key:
openssl rsa -in jwt-key -pubout -out jwt-key.pubthen, move the keys to the .ssh folder:
mkdir .ssh
mv jwt-key .ssh
mv jwt-key.pub .sshalso, you need to download the 3DPottery dataset from the following link:
http://www.ipet.gr/~akoutsou/benchmark/And place the 3D Models and Thmbnail folders in the api\assets directory. The assets directory should look like this:
├───assets
│ ├───3D Models
│ │ ├───Abstract
│ │ ├───Alabastron
│ │ ├───Amphora
│ │ ├───...
│ └───Thumbnails
│ ├───Abstract
│ ├───Alabastron
│ ├───Amphora
│ ├───...Then, you can run the following command to start the backend:
python server.pyOpen another terminal:
cd 3D-content-retrievalcd apps/appThen, run the following command to install the dependencies:
pnpm installthen, run the following command to start the frontend, if you have angular cli installed globally:
ng serveif not, you can run the following command:
pnpm run ng serveThen, open your browser and navigate to http://localhost:4200/ to see the app running.