This repository contains the code for the paper "Object and Edge Detection on Entity-Relationship Diagrams."
Follow these steps to set up the project:
-
Clone the repository:
git clone <repository-url> cd <repository-folder>
-
Install Poetry: Follow the instructions provided in the Poetry documentation.
-
Install project dependencies:
poetry install
-
Add the weights for YOLO and SAM:
Before executing the code, update the file erd_detection/main.py
at lines 22 and 29 with the appropriate paths.
To execute the code, use the following command in the project directory:
poetry run python erd_detection/main.py
Own handwritten Entity-Relationship diagrams can be tested by adding other images to the data
folder.